Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #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-video

    Any help? Thank you!

    Andrea Zanardelli
    Italy

    #214557

    Hi 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,
    Peter

    #214574

    Hi Dude, I don’t want this.
    I want a dedicated archive/portfolio sidebar different from the shop one (woocommerce).
    Ant help?

    Thank you!

    Andrea.

    #214774

    Hey!

    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,
    Peter

    #220009

    Thank you!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Archive & Woocommerce Siderbar Problem’ is closed to new replies.