Last active
January 2, 2016 03:19
-
-
Save shazdeh/8242672 to your computer and use it in GitHub Desktop.
Pinshop: enable the right sidebar on product category pages
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function custom_product_category_layout( $class ) { | |
if( themify_is_function('is_product_category') ) { | |
$class = 'sidebar1'; | |
} | |
return $class; | |
} | |
add_filter( 'themify_default_layout', 'custom_product_category_layout' ); | |
function custom_before_layout() { | |
if( themify_is_function('is_product_category') ) { | |
get_sidebar(); | |
} | |
} | |
add_action( 'themify_content_after', 'custom_before_layout' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
Can you tell which file these changes need to be made?