Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if ( !function_exists('sherkx_front_product') ) :
- add_filter('woocommerce_show_page_title','sherkx_front_product');
- function sherkx_front_product() {
- if ( is_singular('product'))
- return false;
- }
- endif;
- if ( !function_exists('sherkx_front_product_bodyclass') ) :
- add_filter('body_class','sherkx_front_product_bodyclass');
- function sherkx_front_product_bodyclass($classes) {
- if ( is_singular('product'))
- $classes[] = 'page-template-templatesfront-page-php';
- return $classes;
- }
- endif;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement