Hi!
Is it possible to move the sidebar in the shop overview page from right side of the screen to left?
Thanks!
Regards,
Kenneth
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