Created
April 22, 2014 14:37
-
-
Save jillmugge/11181660 to your computer and use it in GitHub Desktop.
force a specific Builder layout for main shop page and individual product 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
function custom_filter_shop_layout( $layout_id ) { | |
if ( is_post_type_archive('product') || is_singular( 'product' )) | |
return '5229da61e6097'; | |
return $layout_id; | |
} | |
add_filter( 'builder_filter_current_layout', 'custom_filter_shop_layout' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment