skyrocker_ss
Forum Replies Created
-
UPDATE: on latest MAMP 4.1.1, I switched to the other version of PHP, 7.0.15, and it seems to be working fine… something changed on PHP from version 7.0.15 that makes editing custom fields not work anymore.
To replicate the issue, install a clean WP site on a MAMP 4.1.1 fresh install, with PHP 7.1.1 and try to add any custom field to any existing or newly created form. It will error 500.
- This reply was modified 8 years ago by skyrocker_ss.
I can confirm that I’m facing this issue as well. Updated MAMP to latest one 4.1.1 with PHP version 7.1.1 and I get the same error… I can’t seem to add any custom fields locally. Works fine on the production server, but locally under MAMP is a no for me as well. Exact same issue. Can you tell me how you solved it? Which PHP / MAMP versions are you using? Many thanks.
- This reply was modified 8 years ago by skyrocker_ss.
Forum: Plugins
In reply to: [WooCommerce Grid / List toggle] Hide excerpt text on grid view?I think I tried it that way, but it didn’t work (at least for me), which is why I decided to replicate the function instead and fire it on page load.
Forum: Plugins
In reply to: [WooCommerce Grid / List toggle] Hide excerpt text on grid view?i ran into this as well, and since the author hasn’t responded to your post, i decided to look under the hood. i resolved this by modifying the jquery.gridlistview.min.js inside plugins/woocommerce-grid-list-toggle/assets/js
this is my modified version of this file (replace it all and it should work):
// The toggle jQuery(document).ready(function(){ function startAsGrid(){ jQuery(this).addClass('active'); jQuery('#list').removeClass('active'); jQuery('ul.products').fadeOut(0, function() { jQuery(this).addClass('grid').removeClass('list').fadeIn(0); }); return false; }; startAsGrid(); jQuery("#grid").click(function(){jQuery(this).addClass("active");jQuery("#list").removeClass("active");jQuery.cookie("gridcookie","grid",{path:"/"});jQuery("ul.products").fadeOut(300,function(){jQuery(this).addClass("grid").removeClass("list").fadeIn(300)});return!1});jQuery("#list").click(function(){jQuery(this).addClass("active");jQuery("#grid").removeClass("active");jQuery.cookie("gridcookie","list",{path:"/"});jQuery("ul.products").fadeOut(300,function(){jQuery(this).removeClass("grid").addClass("list").fadeIn(300)});return!1});jQuery.cookie("gridcookie")&&jQuery("ul.products, #gridlist-toggle").addClass(jQuery.cookie("gridcookie"));if(jQuery.cookie("gridcookie")=="grid"){jQuery("#gridlist-toggle #grid").addClass("active");jQuery("#gridlist-toggle #list").removeClass("active")}if(jQuery.cookie("gridcookie")=="list"){jQuery("#gridlist-toggle #list").addClass("active");jQuery("#gridlist-toggle #grid").removeClass("active")}jQuery("#gridlist-toggle a").click(function(e){e.preventDefault()})});
all I did was replicate the function that activates the grid view, into a new function called startAsGrid(), and just fire it up first, so the grid view gets selected when entering the page the first time. the reason the plugin doesn’t hide the short description when you first go in is because it hasn’t been selected yet. So with this function, it just selects it automatically when entering the page.
Hope this helps while the author updates his source code.