Skip to content
Create a gist now

Instantly share code, notes, and snippets.

Genesis Layout Extras plugin - list of Hooks, Filters, Constansts and helper functions for customizations; since plugin version 2.0.0 // Plugin page at WordPress.org: http://wordpress.org/plugins/genesis-layout-extras/
<?php
/** Do NOT include the opening php tag! */
/**
* 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: http://wordpress.org/plugins/genesis-layout-extras/)
*
* @author David Decker - DECKERWEB.de
* @link http://genesisthemes.de/en/wp-plugins/genesis-layout-extras/
* @link http://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()
*/
function custom_gle_select_layout_option( $gle_layout_option ) {
ddw_gle_layout_select_option(
'my-custom-layout-type-id',
__( 'My Custom Layout Name', 'your-text-domain' ),
'#990000',
$gle_layout_option
);
} // function
} // if
/** Genesis Layout Extras: Remove Export/ Import Info meta box */
define( 'GLE_NO_EXPORT_IMPORT_INFO', TRUE );
/** Genesis Layout Extras: Remove HNCS layout option */
define( 'GLE_NO_HNCS_LAYOUT_OPTION', TRUE );
@deckerweb
Owner

Note: The above codes work with plugin version 2.0.0 or higher!

Extended explanation can be found at the plugin's page "FAQ" section:
http://wordpress.org/plugins/genesis-layout-extras/faq/

Download "Genesis Layout Extras" plugin at WordPress.org:
http://wordpress.org/plugins/genesis-layout-extras/

@rwilki
rwilki commented Dec 4, 2015

is it possible to add pagination to my custom archive template with your plugin?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.