Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #568575

    Hi,

    How can I set enfold portfolio-item default without sidebar?

    Thanks, Ariane

    #568672

    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

    #568684

    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

    #569120

    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

    #570508

    This works fine,
    Thanks Yigit!

    Cheers, Ariane

    #571118

    Hi Ariane,

    Great, glad we could help :-)

    Best regards,
    Rikard

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