The vast majority of Genesis themes support multiple layout options – such as sidebar on the left, sidebar on the right and no sidebar at all.
Usually, you would use the Genesis theme settings to select a default layout and you can then opt to change the layout on a per Post or Page basis. However, for more advanced control, the Genesis filter system lets you override the default layout option or force a layout option.
Each of the six built in layout options comes with a function that can be used in conjunction with the two filters. For the sidebar/content/sidebar layout, the function to use is
This function does not accept arguments.
This function always returns the string
There are no filters on the output of this function.
The markup structure of the sidebar/content/sidebar layout is as follows. Note the class attribute on the body element. Also note that the content always comes before both sidebars in the markup, the rearrangement of the columns being done with CSS.
The shorthand functions to be used in conjunction with the two site layout filters only exist for the six built in layouts. Any site layout option that you register yourself, or is registered by a plugin, does NOT automatically come with a shorthand function to be used in conjunction with the two site layout filters.
__genesis_return_sidebar_content_sidebar has been included since version 1.7.0.
__genesis_return_sidebar_content_sidebar is located in lib/functions/layout.php.
- How to Select From Different Layout Options with Genesis
- How to Override the Default Layout Option with Genesis
- How to Force a Layout Option with Genesis
- How to Use the Content/Sidebar Layout with Genesis
- How to Use the Sidebar/Content Layout with Genesis
- How to Use the Content/Sidebar/Sidebar Layout with Genesis
- How to Use the Sidebar/Sidebar/Content Layout with Genesis
- How to Remove the Sidebar with Genesis