Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #648848

    Hi!

    Is it possible to move the sidebar in the shop overview page from right side of the screen to left?

    Thanks!
    Regards,
    Kenneth

    #650067

    Hey Helgs1,

    Thank you for using Enfold.

    Please go to the Enfold > Sidebar Settings then set the “Sidebar on Archive Pages” to “left”. Or add this in the functions.php file:

    add_filter('avia_layout_filter', 'avia_change_post_layout', 10, 2);
    function avia_change_post_layout($layout, $post_id) {
        //var_dump($layout);
        if(is_archive() && is_post_type_archive('product'))
        {
            $layout['current'] = $layout["sidebar_left"];
            $layout['current']['main'] = "sidebar_left";
        }
        return $layout;
    }

    Best regards,
    Ismael

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