I have created all my themes on the Genesis framework, all my themes come with all 6 layouts. I would like to know if it is possible to set a default layout but still allowing users to change the layout?
It seems a bit of an odd request but it’s only because I have a multisite and would prefer this setup if its possible.
Iv’e seen these code snippets in the tutorials where you can set the default layout:
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
however this forces the website to always use the layout and so users are unable to change it.
Any help appreciated
You’re right, the code you’re using is a way to FORCE a layout, often used for a specific page template or post type, etc.
If you want to just modify the default layout, or any Genesis default for that matter, you’ll probably want to use the
genesis_theme_settings_defaults filter. You can check out a good example from Bill Erickson here: http://www.billerickson.net/code/genesis-theme-settings/
You can give this a try:
It’s untested, so I’m not 100% sure it will work, but it looks like it should.
Thanks for your help.
You must be logged in to reply to this topic.
Are you a blogger, web designer, developer, or website owner looking to generate more income?
Promote products for the largest and fastest growing online website platform as part of our affiliate program.