Genesis comes built in with the following layouts:
- Content Sidebar
- Sidebar Content
- Content Sidebar Sidebar
- Sidebar Sidebar Content
- Sidebar Content Sidebar
- Full Width
The default layout, 'Content Sidebar' can be changed at Genesis > Theme Settings.
We can override the default layout on a per Page or per Post basis by editing the Page/Post.
Additionally it is also possible to apply a layout by using genesis_pre_get_option_site_layout filter.
Here are a couple of examples. Code goes in child theme's functions.php.
To view the full content, please sign up for the membership.
Already a member? Log in below or here.
Fantastic post. I have often thought about how to force layouts for CPT in Genesis. Now you have shed some good light on this.
Thanks so much, Sridhar – I had been trying to figure out how to do something similar to this for about an hour and your post gave me just the right info I needed Much appreciated.
[…] More here: http://www.sridharkatakam.com/apply-layout-genesis-conditionally/ […]
[…] imposer une mise en page par le code sur tous les modèles de votre thème. Un article de Sridhar, How to apply layouts conditionally in Genesis, détaille toutes les options possibles sur la mise en page. Dans les Autres liens utiles, je mets […]
[…] https://sridharkatakam.com/apply-layout-genesis-conditionally/ […]