For Genesis powered Sites: Allows modifying of default layouts for homepage, various archives, taxonomies, post types, attachment, search, 404 pages.
Among the Top 10 most downloaded Genesis plugins ever π Thank you!
With this lightweight plugin for the popular Genesis Framework you can very easily modify the (registered) default layouts for homepage, singular pages (for posts and pages), various archive sections, author pages, attachment pages, search results pages, the 404 page – all done via a new admin settings page. Just look for it at the submenu: Genesis > Layout Extras.
Also, you can optionally add Layouts meta box support for post types inpost screens which don’t have it yet. Plus, Genesis Archive Settings for post types could be enabled as well.
As a smart bonus the plugin also includes the layout setting for the bbPress 2.x forum plugin which itself is compatible to Genesis. Also added is the layout setting for other plugins from the Genesis ecosystem or other third-party authors: for example AgentPress Listings which includes the custom post type ‘listings’ and the taxonomy ‘features’. Just have a look on the below listings for full explanation.
Please note: The plugin requires the Genesis Theme Framework (GPL-2.0+), a paid premium product released by StudioPress/ WPEngine, Inc. (via studiopress.com).
original video linkby plugin developer David Decker
home.php
or static page as front page)en_US
= default, always includedde_DE
de_DE_formal
.pot
file (genesis-layout-extras.pot
) for translators is also always included πPlease note, this plugin lives on, it is far from “dead”! I could not maintain it the last 5 years (August 2013 until August 2018), as I had personal issues keeping me from it. However, the plugin worked very well in almost all cases over the years, that is due to the super stable Genesis Framework.
UPDATE Is Out! Yes, the update v2.1.0 is finally out (you are on its readme just now). The plugin will get further maintenance and development.
If you want to translate, go to the Translation Portal at translate.wordpress.org.
You can also contribute code-wise via our Genesis Layout Extras GitHub Repository – and see where you can help.
Try Toolbar Extras for Genesis my other great plugin for Site Builders and admins: Building sites with Genesis or Elementor or both? Your work will get easier & faster with Toolbar Extras. With extended plugin & theme support baked right in. Of course, “Genesis Layout Extras” is integrated as well π
toolbar extras
in the plugin installer πmanage_options
and edit_theme_options
who is logged-ingenesis layout extras
), or extract the ZIP file and drop the contents in the wp-content/plugins/
directory of your WordPress installation.
original video linkby plugin developer David Decker
1) Up to 6 default layouts of Genesis – when registered:
2) Currently up to 9 additional layouts of this plugin (Genesis Layout Extras):
*) = Not with my “Genesis Prose Extras” plugin – that brings those layouts on its own, but with more optimized CSS π
PLEASE NOTE: These 9 additional layouts were added in 2013 under a different situation of the overall market and Genesis. Looking back it was a mistake to do that, as the whole CSS for Child Themes is just unmanageable! Therefore the support for these layouts cannot and will not be given any longer! But rest assured: for backwards compatibility and for the users that somehow used them, I will keep their registering functions and their CSS in the plugin for as long as possible.
However, I might be hide the options from the settings page in the future (again this will not affect your usage!). To be clear: I will NOT remove features that were in it for 5 years and of course are used in the wild. I serve my users and the community. But please understand that I cannot longer offer support in any way for THESE ADDITIONAL layout options. You can always register your own options and maintain the CSS for your special use case. No problem at all! π — Thanks for your support!
Plugin settings page - introductory section
Settings meta box for additional layout options - up to nine (9!) are possible! :)
Settings meta box for additional post type support - for public post types and/or ones with 'archive' support
Select a default layout option for various sections, CPTs etc. -- via the drop-down menu
Set a default layout option for lots of WordPress' default cases/ pages/ views
Supported custom post types by plugins -- just an example with Easy Digital Downloads and bbPress 2.x (there are many more included, see 'Description'!)
Supported custom post types by child themes -- just an example for "Executive 2.0" child theme (there are many more included, see 'Description'!)
Plugin settings are hooked into the Genesis Exporter feature for easy export & import of plugin settings! :)
Manage the display of the settings page meta boxes via "Screen options" tab on top right corner
Help tab system included on the plugin's settings page - tab on top right corner
Example of activated alternate layout options - that are also hooked into the inpost edit screens layout options meta box! :) (The same on Genesis Theme Settings!)
Example of activated "Genesis Archive Settings" for a post type - for "Portfolio" in this example here
PLEASE NOTE: These 9 additional layouts were added in 2013 under a different situation of the overall market and Genesis. Looking back, it was a mistake to do that, as the whole CSS for Child Themes is just unmanageable! Therefore the support for these layouts cannot and will not be given any longer after December 18th, 2018 (which is the release date of v2.1.0 the “back to life” version)! But rest assured: for backwards compatibility and for the users that somehow used them, I will keep their registering functions and their CSS in the plugin for as long as possible.
However, I might be hide the options from the settings page at some point in the future (again this will not affect your usage!). To be clear: I will NOT remove features that were in it for 5 years and of course are used in the wild. I serve my users and the community. But please understand that I cannot longer offer support in any way for THESE ADDITIONAL layout options. You can always register your own options and maintain the CSS for your special use case. No problem at all! π — Thanks for your support!
Good question, hehe π — Since you are absolutely not forced to use the new options you can disable all and set the settings meta box to not display (via “Screen options” tab on top right corner), so you won’t even see them on the plugin’s settings page.
If, however, you want some new – simplyfied or tweaked – flavors of existing layouts, then you might try one of the new options. So for example, the “Primary below Content” layout option is perfect for minimalistic one-column sites. Or the “Sidebars below Content” is great for content-oriented blogs and/or sites that want to drop the bloat from the SIDEbar and only offer a bit more stuff below the main content – in a nice 2-column outfit.
This could only be the case if your child theme (or another plugin or some code snippet…) has un-registered both Genesis default sidebars. Those two are needed for the layout options, so, if they are not there, you just cannot see and use my plugin’s layout options.
Yes, they are! All is working like it should with minimal additions on CSS style rules (only what’s really needed).
This may depend on the used CSS rules loaded via the plugin. Those rules are NOT based on specific child themes but use a “middle-of-the-road” general concept that is based on percentage CSS values. This way I can save a lot of (child theme specific) overhead.
This approach may work with a lot of the official child themes by StudioPress. Sure, not all! Just try, and if needed, add additional CSS rules to your child theme style sheet to tweak the plugin styles.
Also, you are free to not load the plugin styles at all (see plugin settings!). In that case you might add completely custom CSS styles to your child theme (or wherever, via another plugin or what…).
This means that your current active Child Theme or a plugin (or even some code snippet…) has unregistered some layouts. The select drop-down field of this plugin only represents what was registered before – this being the case via Genesis itself or a Child Theme or plugins.
Note: The most recent “Sample” Child Theme from StudioPress, and many other newer Child Themes, only come with three (or even 2 only) layout options.
Nothing spectacular, you just can set the layout option for the archive pages of the “listings” post type, plus for all terms of its built-in “features” taxonomy. – Of course, the plugin (and so the setting in there) could be used with the AgentPress child theme and also with any other Genesis child theme, so this setting might come in really handy ;-).
This has to do with priorities. In general, if there’s a template for a specific page (archive) type, for example image.php
for image attachment display, then Genesis & WordPress will always use that first for the content output AS LONG AS there’s an layout setting function or filter in there. Only if there are no templates with layout settings found, the layout option settings will take full effect. So, if our example image.php
has a layout filter set in this then has the higher priority. But if there’s no layout filter in there then the plugin’s layout setting will take effect! – Well, if you experience such cases just leave these fields on “Genesis Default” and you’re good to go :-). (You might call that a limitation of the plugin or whatever but that’s the intended behavior of WordPress & Genesis.)
Nothing spectacular…
a) It just would add the inpost metaboxes of Genesis for layouts (whoa!), SEO (only if no SEO plugin is used) and Scripts (since Genesis 2.0+). — That only works for post types that are “public” which means, viewable on the frontend!
b) Also possible, is the activation of the new Genesis Archive Settings (for post types; since Genesis 2.0+). So you can for example, edit the Archive Page Title, SEO Options and Layout Options for a ‘download’ archive page (or a ‘books’ archive, ‘portfolio’ archive…). — That only works for post types that are “public” which means, viewable on the frontend AND have support enabled for 'has_archive' => true
in their post type registration!
Note: The layout settings for archives done via these Genesis Archive settings and/or the content archive settings of THIS plugin do just the same. So you decide which one you use. Nothing could break, and it does no harm. So, enjoy your content archives (settings)!
a) Layouts: Actually it just restores the default layout setting which is always defined in regular layout settings on the Genesis Theme Settings page.
b) All other settings are set to their default state.
ALL available options are resetted to their defaults!
So if you for example only want to reset one option and leave all other as they are then only change this one section and then click the SAVE button and you’re done.
Yes, it is! π Works really fine in Multisite invironment – here I just recommend to activate on a per site basis so to load things only where and when needed.
Yes, you could. — Still, a per site use is recommended. — Network activation makes the most sense if all sub sites are using Genesis! On the other hand, if your Multisite install has 10 sites and only 3 may run with Genesis, network activation is not recommended!
That’s possible since plugin version 2.0.0! Handy feature for custom child theme development as well as for plugin developers, hehe π
Just use this sample code and modify/ enhance to your needs:
/** * Adding additional custom layouts to the layout select drop-down for plugin * "Genesis Layout Extras". * * NOTE: This requires the Genesis Framework, plus the plugin "Genesis Layout * Extras" (available via: https://wordpress.org/plugins/genesis-layout-extras/) * * @author David Decker - DECKERWEB.de * @link https://deckerweb.de/twitter */ if ( defined( 'GLE_SETTINGS_FIELD' ) && function_exists( 'genesis_get_layout' ) ) { add_action( 'gle_layouts_drop_down', 'custom_gle_select_layout_option', 10, 1 ); /** * Helper function to add additional <option> markup to select drop-down. * * @uses ddw_gle_layout_select_option() * * param string $gle_layout_option */ function custom_gle_select_layout_option( $gle_layout_option ) { ddw_gle_layout_select_option( 'my-custom-layout-type-id', // layout ID __( 'My Custom Layout Name', 'your-text-domain' ), // layout label name '#990000', // background color in drop-down $gle_layout_option // internal variable - DO NOT delete! ); } // end function } // end if
Just add this line of code to your child theme’s functions.php
file, a functionality plugin or snippet management plugin:
/** Genesis Layout Extras: Remove Export/ Import Info meta box */ define( 'GLE_NO_EXPORT_IMPORT_INFO', TRUE );
It’s possible, yes, just add this line of code to your child theme’s functions.php
file, a functionality plugin or snippet management plugin:
/** Genesis Layout Extras: Remove HNCS layout option */ define( 'GLE_NO_HNCS_LAYOUT_OPTION', TRUE );
All the custom & branding stuff code above can also be found as a Gist on GitHub: https://gist.github.com/deckerweb/6151740 (you can also add your questions/ feedback there π
/wp-content/languages/genesis-layout-extras/
(just create this folder) – This enables you to use fully custom translations that won’t be overridden on plugin updates. Also, complete custom English wording is possible with that as well, just use a language file like genesis-layout-extras-en_US.mo/.po
to achieve that (for creating one see the following tools).Easy plugin translation platform with GlotPress platform:Translate “Genesis Layout Extras”…
Note: All my plugins are internationalized/ translateable by default. This is very important for all users worldwide. So please contribute your language to the plugin to make it even more useful. For translating and validating I recommend the awesome “Poedit Editor”, which works fine on Windows, macOS and Linux.
Stay in the Loop:Join our thriving community of Site Builders – My Newsletter will bring you insider infos for Genesis Layout Extras plugin, as well as my other Genesis/ WordPress plugins, plus tutorials and other useful stuff.
Security: The plugin uses the Genesis Sanitization class for checking and filtering all custom inputs. Further, the plugin uses WordPress and Genesis Framework APIs and coding standards to the highest possible extend. Just to make sure you get a quality, future-proof product.
Idea Behind / Philosophy: I had liked the general approach of the former plugin (I forked from) – which provided a simple and great way to set a few needed options. Since it seemed no longer to be developed and updated I just decided to make a fork of it and add some additional functionality like setting the layout setting for the (awesome!) bbPress 2.x forum plugin in Genesis. And, I wanted this all on an extra options page, divided from the general Genesis settings because that is much more user friendly IMHO. In addition I added full inline documentation including the contextual help function provided by WordPress itself to create a more seamless user experience.
Among the Top 7 most downloaded Genesis plugins ever π (For many years it was even in the Top 7!) Thank you all users for using it over all these years and all translators to make the plugin accessible for a bigger audience!
Thanks for all user feedback that led to improvements in the plugin!
Big thanks to all Genesis users, developers and bloggers who reviewed the plugin on their websites/ blogs!
Credit where credit is due: This plugin here was first based on the work of WPChildThemes for the great “Genesis Layout Manager” plugin (licensed under GPLv2 or later). Now, more than seven (7!) and a dozen updates later the basic function is still there but the code totally refactored…! π
Last but not least, Special Thanks go out to my family for allowing me to do such spare time projects (aka free plugins) and supporting me in every possible way!
NOTE: This plugin lives on, it is far from “dead”! I could not maintain it the last years, as I had personal issues keeping me from it. The plugin worked very well in almost all cases over the years, that is due to the super stable Genesis Framework.
NOTE for the extra Layouts The up to nine additional layouts added with version 2.0.0 of the plugin back in 2013 are now deprecated as of December 2018. That means, they will NOT receive any more updates and also NO SUPPORT. You can still use them if you want but you need to care for the proper styling, displaying etc. yourself. Therefore it would make more sense for you to not use these option from the plugin but rather register custom layouts yourself and make use of our filters to bring them also into the settings drop-down field. Thanks for your understanding! – This note only regards the additional layouts, NOT the plugin itself of course, the plugin is alive and kickin’, hehe :-).
.pot
file plus all German translations (formal, informal) and language packscomposer.json
file to the plugin’s root folder – this is great for developers using ComposerREADME.md
file for plugin’s GitHub.com repository to make it more readable there.pot
file plus all German translations (formal, informal) and German language packssidebar
) and/or Secondary Sidebar (Sidebar-Alt, ID sidebar-alt
) may not have been unregistered!NEW: Added support for more custom post type by plugins:
genesis_get_option
function to allow error-free theme changing (from Genesis to a non-Genesis theme) — Please note: this also fixes the Multisite errors when plugin is network activated! — Props to WP.org user “greghile” for reporting the Multisite issue!genesis-layout-extras.pot
) for translatorsis_front_page()
so also static pages set as homepage (in WordPress: Settings > Reading) are now supported!genesis-layout-extras.pot
) for translators