Jump to content

Replying to Assign Layout/view To Exchange Product Category Archive

Post Options

  or Cancel

Topic Summary


Posted 20 May 2014 - 02:13 PM


you can assign a Builder layout to an Exchange product category archive by adding the following function in your child theme's functions.php:

function custom_filter_category_layouts( $layout_id ) {
	if (!is_admin() && (is_archive) && (builder_is_custom_post_type__it_exchange_prod ))
			return '5257fe4449908';
	return $layout_id;
add_filter( 'builder_filter_current_layout', 'custom_filter_category_layouts' );

where the layout ID can be found by hovering over the layout in the Builder layout manager, and observe the URL it links to:

Posted Image

or just click that link and find the id in the URL:

Posted Image

hope that helps,


Posted 16 May 2014 - 12:36 PM

What about using Widget Logic or something similar to set when the widget should be visible on a page?

Elise Alley

Posted 15 May 2014 - 04:54 PM

Hi Chris,

I'll definitely let you know if another option becomes available.  

Let us know if you have any other questions.




Posted 15 May 2014 - 04:16 PM


Ok, unfortunately that's what I figured. I was hoping not to have to "use up" my default layout just to have exchange-specific widgets in store-related pages, and non-exchange widgets in non-store pages.

If you find any other way around this, please let me know. Thanks for the help,

Elise Alley

Posted 15 May 2014 - 11:23 AM

Hi Chris,

The product category pages use the default layout.  To use the same layout for both the store and category page, you'll need to set that particular layout as your default.  

It looks like the two layouts are essentially the same.  You could also remove the widgets from the sidebar in the layout used by your category page and then place the Exchange Super Widget and Product Categories in that widget area.  

Let us know if you have any additional questions.




Posted 14 May 2014 - 09:39 PM


Here is our website: 80fsheadhunters.com
We are using Builder and the Air child theme

I am trying make my product category archives use the same sidebars as my exchange-generated pages do. That way a customer is not thrown off by an abrupt layout shift in sidebars from exchange widgets to standard blog-type widgets in sidebars.  For example: by going to Store > Memberships (in the "product category" sidebar widget on right side), you can see that the sidebar widgets change from the exchange sidebar widgets (exchange super widget, product category list) to the default sidebars with non-exchange specific sidebar widgets (post categories, tags, archives etc.).

- I've tried "views" under layouts and views, but only see an option for all category archives, not just PRODUCT category archives
- I can't seem to find a way to assign a "layout" in "layout & views" to product category archives

Any ideas on how to keep consistent exchange widgets in sidebars for both exchange-created pages and product category archives?


Review the complete topic (launches new window)