• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2669

Original Genesis Tutorials & 5000+ Guaranteed Code

Snippets

  • Tutorial Requests
  • Contact
  • Videos
  • Tags
  • Log in

Premium Member? - Request custom code

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.

Layout

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Brad Dalton Specializes In Genesis child theme customization & code modification. Read More…

Learn PHP Code

template_include

get_body_class

if else

array

class_exists

foreach

sprintf

add_action

printf

variable

Advertise · WPEngine · Genesis · Log in

  • How Premium Membership Works
  • Sign Up
  • Support
  • Subscription Details/Invoice
  • Tagged Tutorials
  • Access-Download Problems