Tagged: portfolio item
Hi,
How can I set enfold portfolio-item default without sidebar?
Thanks, Ariane
Hi ariane1001!
what do you mean? you can deactivate any sidebar when editing any page (look on the right side of the screen when editing a page).
Cheers!
Andy
Hi Andy,
I know that possibility but I would like to turn of the sidebar like how it’s possible in Theme options in het Sidebar menu. Here you can choose weather you want a sidebar on specific pages and on the blog-pages.
Is there for example a code snippet for functions.php that turns of the sidebar on portfolio-item pages?
Cheers, Ariane
Hi!
Please add following code to Functions.php file in Appearance > Editor
add_action( 'after_setup_theme', 'enfold_customization_product_switch' );
function enfold_customization_product_switch(){
add_filter('avf_builder_elements', 'avf_builder_elements_mod');
}
function avf_builder_elements_mod($elements)
{
$counter = 0;
foreach($elements as $element)
{
if($element['id'] == 'layout') {
$elements[$counter]['std'] = 'fullsize';
}
$counter++;
}
return $elements;
}
Regards,
Yigit
This works fine,
Thanks Yigit!
Cheers, Ariane