Tagged: sidebar
I would really like to have the sidebar disabled on single post portfolio entries but enabled on single post blog entries.
Is there a way to do this?
Hey everkaaik,
Thank you for using Enfold.
Please enable the sidebar in the Sidebar Settings panel then add this code in the functions.php file:
add_filter('avia_layout_filter', 'avia_layout_filter_mod', 10, 2);
function avia_layout_filter_mod($layout, $post_id) {
if( is_singular('portfolio') ) {
$layout['current'] = $layout['fullsize'];
$layout['current']['main'] = 'fullsize';
}
return $layout;
}
Best regards,
Ismael
Thank you so much Ismael!
This worked perfectly :)