-
AuthorPosts
-
January 4, 2016 at 2:28 pm #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: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 scrollMaybe some quick CSS?
Thanks,
Antonio
January 4, 2016 at 2:50 pm #559196Hi 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,
YigitJanuary 4, 2016 at 2:59 pm #559204Hi 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
January 5, 2016 at 9:16 am #559774Hi Yigit,
Any news on my explanation?
Thanks.
Antonio
January 5, 2016 at 1:43 pm #559918Hi!
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,
IsmaelJanuary 5, 2016 at 2:32 pm #559939This 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
January 5, 2016 at 3:27 pm #559961January 5, 2016 at 3:32 pm #559965Awesome!
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
-
AuthorPosts
- The topic ‘different Layout settings by default?’ is closed to new replies.