Skip to content

Instantly share code, notes, and snippets.

@deckerweb
Last active December 20, 2015 15:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deckerweb/6151740 to your computer and use it in GitHub Desktop.
Save deckerweb/6151740 to your computer and use it in GitHub Desktop.
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
Copy link
Author

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
Copy link

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