Remove Layout Settings In Genesis

Paste any of these single lines of PHP code at the end of your child themes functions file to remove specific layout settings in Genesis.

The layout settings will be removed from the single in post edit screen as well as the Genesis > Theme Settings > Layout Settings admin screen.

Note : Generally, there’s no need to use a hook to remove layout settings in Genesis, however, on the rare occasion when a child theme loads layouts using a hook, you may need to use a hook which fires after the hook which loads the layouts which is the case with some non StudioPress child themes.

Function To Remove Layout

You can also use a function which fires using the after_setup_theme or init hook to remove 1 or more layouts like this :

add_action( 'after_setup_theme', 'remove_genesis_layout_setting' );
function remove_genesis_layout_setting() {

    genesis_unregister_layout( 'full-width-content' );
}

And here’s the result showing the full width layout setting removed :

Tested using the Genesis Sample child theme by StudioPress.

Join 5000+ Followers

Get The Latest Free & Premium Tutorials Delivered The Second They’re Published.