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'];
How to Zoom in effects in hover? Copy the HTML / CSS structure and paste it into your editor. Example: HTML <a class="zoom-in-hover" href="#"> <span class="group"> <img src="https://www.anthonypagaycarbon.com/wp-content/plugins/wordpress-popular-posts/no_thumb.jpg" alt="Zoom in effects in hover" /> </span> </a> CSS .zoom-in-hover { overflow: hidden; display: inline-block; text-align: center; } .zoom-in-hover .group { -webkit-transition: all 0.3s ease-in-out; -moz-transition: all…
Copy this code to your wp-config.php of your WordPress folder. define( ‘WP_CONTENT_DIR’, ‘/home/site-folder/public_html/custom-wp-content-name-content’ ); define( ‘WP_CONTENT_URL’, ‘http://site.com/custom-wp-content-name-content’ );
Demo slidetoggle Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor.Aenean massa. Lconsectetuer ipsum dolor sit amet, adipiscing elitorem. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesquem. HTML mark up <div id="faq"> <h6>Lorem…
Having problem on The7 WordPress theme share buttons on single post or custom post type? You can display a share buttons anywhere using this codes below. Mostly needed in custom post type that does not support this feature. $share_buttons = presscore_display_share_buttons_for_post( ‘post’, array(‘echo’ => false)); if ( $share_buttons ) { printf( ‘<div class="post-meta wf-mobile-collapsed">%s</div>’, $post_tags…
Hi guys! good day.. I have a very short code here to connect your Woocommerce pages to the genesis sidebar layout. Paste the codes below on your functions.php. NOTE: If the codes below does not work, means your current Woocommerce hooks has been re-locate or Woocommerce hooks has been updated from before structure. # WOOCOMMERCE…
Override rtMedia media-gallery.php template into current WordPress theme is now not a problem. For example you have artist role in your users and you want different template for the artist role. This apply in `http://www.sample.com/members/artist/media/music/` page. add_filter( ‘rtmedia_template_filter’, ‘rtmedia_template_filter_override’, 10, 3 ); function rtmedia_template_filter_override( $template ){ global $bp; $role = get_user_meta( $bp->displayed_user->id, ‘wp_capabilities’, true );…