Hi
I would like to set remove the sidebar from the WooCommerce product category (See Link)
1. Is this possible using the Advanced Editor?
2. If not where is the template page? I will add it to my child theme.
Kind Regards,
Adrian Smith
Anybody There ?
Hi,
Thank you for using Enfold.
Please 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) {
if(is_archive() && is_post_type_archive('product'))
{
$layout['current'] = $layout["fullsize"];
$layout['current']['main'] = "fullsize";
}
return $layout;
}
Best regards,
Ismael
Hi Ismael
I pasted it into my child theme and nothing happens.
Regards,