Skip to content

Instantly share code, notes, and snippets.

@shazdeh
Last active January 2, 2016 03:19
Show Gist options
  • Select an option

  • Save shazdeh/8242672 to your computer and use it in GitHub Desktop.

Select an option

Save shazdeh/8242672 to your computer and use it in GitHub Desktop.
Pinshop: enable the right sidebar on product category pages
<?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' );
@kabeerj

kabeerj commented Sep 2, 2014

Copy link
Copy Markdown

Hi,

Can you tell which file these changes need to be made?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment