Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #559183

    Hi,

    I’d like to have certain layout settings by default every time I create a new page, since I need them to be always the same.
    Can you help out, please?
    See image below:

    LayoutSettings

    I’d need the following:
    -Layout –> No sidebar
    -Footer Settings –> Display only the socket
    -Title Bar Settings –> Hide Both
    -Header visibility and transparency –> Header is invisible and appears on scroll

    Maybe some quick CSS?

    Thanks,

    Antonio

    #559196

    Hi Antonio!

    Please go to Enfold theme options > Sidebar Settings and choose not to display sidebar, then go to Enfold theme options > Footer and choose to display only footer socket. Then go to Enfold theme options > Header and choose to hide both “Header Title and Breadcrumbs”. For transparency options, you would need to edit each page and set them individually. Please feel free to request such option in Enfold theme options here – https://kriesi.at/support/enfold-feature-requests/

    Regards,
    Yigit

    #559204

    Hi Yigit,

    Thank you for your prompt reply.
    Unfortunately, all you suggested is what I’ve been setting on every single site I have with Enfold since the very beginning.

    For a reason to me unknown, nothing of those settings has ever worked.
    You can check by yourself if you can, I post you the admin below to this specific site.

    It’s something weird I’ve experienced since the very beginning of Enfold, but I never really gave it too much of an issue, until now, where in this specific site I need to create multiple pages that all have the same layout by default, like I mentioned and that is not accomplished by selecting the options like you said in the Enfold Theme options.

    Hopefully, you can help out.

    Thank you

    #559774

    Hi Yigit,

    Any news on my explanation?

    Thanks.

    Antonio

    #559918

    Hi!

    Sorry for the delay. Please use this filter in the functions.php file:

    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';
            }
    
    		if($element['id'] == 'footer')  {
                $elements[$counter]['std'] = 'nofooterwidgets';
            }
    
            if($element['id'] == 'header_title_bar')  {
                $elements[$counter]['std'] = 'hidden_title_bar';
            }
    
    		if($element['id'] == 'header_transparency')  {
                $elements[$counter]['std'] = 'header_transparent header_scrolldown ';
            }
    
            $counter++;
        }
    
    	return $elements;
    }
    

    Newly created pages will have those settings by default.

    Best regards,
    Ismael

    #559939

    This is simply A W E S O M E , Ismael!

    Thank you so much! It works perfectly.

    Will it work for a new site I may do on a new domain, using Enfold?

    Thanks again,

    Antonio

    #559961

    Hey!

    Yes, it would work :)
    Glad Ismael could help!

    Best regards,
    Yigit

    #559965

    Awesome!
    Problem solved then, you can mark this thread as closed.

    Thank you so much!

    This is going to be invaluable for me.
    On a side note, you may consider looking into this feature for a future update, as it would be great if such changes could be applied from the original Theme Options panel.

    Antonio

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘different Layout settings by default?’ is closed to new replies.