Last active
December 20, 2015 15:08
-
-
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/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 ); |
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
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/