Site icon League WP

How to Remove Unwanted Layout in Genesis Themes

How to Remove Unwanted Layout in Genesis Themes

How to Remove Unwanted Layout in Genesis Themes

If you’re using Genesis themes (Genesis Sample Theme), you may have noticed it offers six layouts out of the box. Many developers use Genesis Sample as a starter theme to develop custom site or blog. However, if you’re planning to use only specific layout, you might want to remove or unregister the unwanted layouts. It keeps your dashboard near and offers a clean interface.

Let’s take a look at the default layout options in Genesis Sample theme.

I usually keep the content-sidebar for blog section and full-width-content for the pages.

You can remove or unregister any of the given layout options simply by writing a line of code in your functions.php file.

The function you need to remove a layout is: genesis_unregister_layout

For example, to remove the sidebar-content layout, you will add the following line to your functions.php file.

//* Remove sidebar/content layout
genesis_unregister_layout( 'sidebar-content' );

Similarly, to remove other layout options, you need to use any of the following code snippet.

After removing sidebar-content, content-sidebar-sidebar, sidebar-sidebar-content and sidebar-content-sidebar layout, here’s how it looks:

I hope this helps you remove unwanted layout in your Genesis themes.

If you have any questions, let me know.

Exit mobile version