Tagged: sidebar
-
AuthorPosts
-
January 24, 2014 at 7:05 pm #214544
Hello! I really love Enfold and I use it for my website http://www.zanardelligolf.com.
In my website I have a shop runned with Woocommerce and I also have a TV Channel in my Archive (every video is a portfolio item).HERE IS THE PROBLEM:
Woocommerce shop sidebar is the same of archive/porfolio sidebar.
In the shop I can ADD some widgets in the SHOP AREA but there is not an ARCHIVE AREA, only a DISPLAYED EVERYWHERE AREA.This limit results that in this two pages I have the same widget (Guarda i video) that should be displayed only in the portfolio/archive sidebar (not in the shop):
http://www.zanardelligolf.com/?product_cat=merchandise-2
http://www.zanardelligolf.com/?portfolio_entries=pre-swing-videoAny help? Thank you!
Andrea Zanardelli
ItalyJanuary 24, 2014 at 7:36 pm #214557Hi zanardelligolf!
If you want to display the shop sidebar on product category pages open up sidebar.php and replace
// general shop sidebars if ($avia_config['currently_viewing'] == 'shop' && dynamic_sidebar('Shop Overview Page') ) : $default_sidebar = false; endif;
with
if(is_product_category()) $avia_config['currently_viewing'] = 'shop'; // general shop sidebars if ($avia_config['currently_viewing'] == 'shop' && dynamic_sidebar('Shop Overview Page') ) : $default_sidebar = false; endif;
Best regards,
PeterJanuary 24, 2014 at 8:12 pm #214574Hi Dude, I don’t want this.
I want a dedicated archive/portfolio sidebar different from the shop one (woocommerce).
Ant help?Thank you!
Andrea.
January 25, 2014 at 11:46 am #214774Hey!
You could create a new custom widget area on the widget settings page (Appearance > Widgets). Then open up sidebar.php and replace
// general shop sidebars if ($avia_config['currently_viewing'] == 'shop' && dynamic_sidebar('Shop Overview Page') ) : $default_sidebar = false; endif;
with
// general shop sidebars if ($avia_config['currently_viewing'] == 'shop' && dynamic_sidebar('Shop Overview Page') ) : $default_sidebar = false; endif; if(is_product_category() && dynamic_sidebar('Products Archive Page') ) : $default_sidebar = false; endif;
and replace “Products Archive Page” with the name of your custom widget area.
Regards,
PeterFebruary 5, 2014 at 5:34 pm #220009Thank you!
-
AuthorPosts
- The topic ‘Archive & Woocommerce Siderbar Problem’ is closed to new replies.