Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1002925

    I have disabled sidebars on archives in Enfold / Options as I do not want it on any normal archive pages.

    However I do wish to show the sidebar on the Shop page – there a way to enable the sidebar on this page only?

    Many Thanks.

    #1003290

    Hey M1000000,

    Can we check your web site and maybe also have backend access?

    Best regards,
    Basilis

    #1003304

    Hi Basilis,

    Working localhost I’m afraid. It’s a general question though:

    Enfold options allow me to disable sidebars on all archive pages but as the Woocommerce shop is also an (product) archive it disables it there too. I wish to show the sidebar on the woocommerce Shop page only and nowhere else (apologies if original wording unclear) – how do I do this?

    Thanks, M

    #1003571

    Hi M1000000,

    A product does not use archive template and so that setting should not affect it.

    https://cl.ly/bf04c01ea7dc Check this setting if the product is built with the default editor.

    Best regards,
    Victoria

    #1003580

    Victoria – the Shop page is what I am talking about – otherwise known as Product Archive – this uses the archive template therefore when sidebars are disabled on archive pages they are disabled on the Shop page too.

    So I am NOT referring to a single product page, I am referring to the product archive (i.e. the woocommerce Shop page) – hope this is clear.

    Afraid the screen grab URL you provided is wrong so unable to view.

    #1003954

    Hi,

    Please disable sidebar on archive pages and add this code to the child theme functions.php:

    
    add_filter('avia_layout_filter', 'avia_change_post_layout', 10, 2);
    function avia_change_post_layout($layout, $post_id) {
        if( is_shop() ) {
            $layout['current'] = $layout['sidebar_right'];
            $layout['current']['main'] = 'sidebar_right';
        }
    
        return $layout;
    }
    

    to show a sidebar on the shop page. If you want to show a sidebar on product archive pages too use this code:

    
    add_filter('avia_layout_filter', 'avia_change_post_layout', 10, 2);
    function avia_change_post_layout($layout, $post_id) {
        if( is_shop() || is_product_category() ) {
            $layout['current'] = $layout['sidebar_right'];
            $layout['current']['main'] = 'sidebar_right';
        }
    
        return $layout;
    }
    

    Best regards,
    Dude

    #1004094

    Perfect thanks – would be great as an admin option.

    #1004696

    Hi,

    Thank you for your feedback :)

    Best regards,
    Basilis

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.