New registered layout not in dropdown menu
-
I’ve registered a new layout in Genesis by adding the following to my functions.php file:
//** Add sidebar-alt-content layout **// genesis_register_layout( 'sidebar-alt-content', array( 'label' => 'Small Sidebar/Content', 'img' => '/wp-content/themes/genesis/images/sidebar-alt-content.jpg', ) ); add_action('genesis_before', 'gt_new_custom_layout_logic'); function gt_new_custom_layout_logic() { $site_layout = genesis_site_layout(); if ( $site_layout == 'sidebar-alt-content.jpg' ) { // Remove default genesis sidebars remove_action( 'genesis_after_content', 'genesis_get_sidebar' ); remove_action( 'genesis_after_content_sidebar_wrap', 'genesis_get_sidebar_alt'); add_action( 'genesis_before_content_sidebar_wrap', 'genesis_get_sidebar_alt' ); } }
The new layout shows up in the admin sections of all my posts and pages, but not in the dropdowm menus for your plugin. How do I get it to show up there, too? Thanks!
https://www.ads-software.com/extend/plugins/genesis-layout-extras/
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘New registered layout not in dropdown menu’ is closed to new replies.