Product categories WordPress codex
How to get current product category slug?
global $wp_query; echo $wp_query->query_vars['product_cat'];
How to get current product category slug?
global $wp_query; echo $wp_query->query_vars['product_cat'];
Update via wp-config.php define(‘WP_HOME’, ‘http://www.example.local’); define(‘WP_SITEURL’, ‘http://www.example.local’); Update via functions.php update_option(‘siteurl’,’http://www.example.local’); update_option(‘home’,’http://www.example.local’);
How to remove primary side include the ‘ ‘ tags. <aside class="sidebar sidebar-primary widget-area responsive-element" role="complementary" itemscope="itemscope" itemtype="http://schema.org/WPSideBar"> <section id="text-36" class="widget widget_text">YOUT WIDGET</section> </aside> Copy this code and paste into your functions.php remove_action( ‘genesis_after_content’, ‘genesis_get_sidebar’ );
Navigation menu on-click prevent default if menu item has children and fires only on second click // OPTION 1 // JQUERY $( ‘.menu-item-has-children a’ ).click( function(e){ $( this ).parent().toggleClass( ‘active-li’ ); if( $( this ).next( ‘.sub-menu’ ).css( ‘display’ ) == ‘block’ ){ e.preventDefault(); } }); // CSS ul.menu .sub-menu { display: none; } ul.menu .active-li…
Copy the codes below and follow the instructions. FOR SPECIFIC CATEGORY 1. Install Category Featured Images plugin. 2. Add an image to your category post. 3. Create a file that named category-7.php ( NOTE : The “7” in category-7.php is the category ID of your specific category ). 4. Copy and paste the codes in…
WDES Responsive Tool 1 is a WordPress plug-in designed to provide mobile responsive solution for your websites. WDES Responsive Tool 1 helps your websites mobile friendly and much more reliable in mobile view.
<ul> <li>Lorem</li> <li>Lorem ipsum immit</li> <li>Lorem dolor</li> </ul> // GET THE WIDTH HIGHEST VALUE var max = Math.max.apply(Math, jQuery("ul li").map(function() { return jQuery(this).width(); })); jQuery( ‘ul’ ).css( {‘max-width’: max, ‘width’:’100%’} ); // GET THE HEIGHT HIGHEST VALUE var max_height = Math.max.apply( Math, jQuery( ‘ul li’ ).map( function(){ return jQuery( this ).height(); }) ); jQuery( ‘ul’…