Sidebar issue with Genesis theme after updating to WordPress 4.7

A number of my clients have brought this problem to my attention – in their Genesis-based site, suddenly their right sidebars had moved to the left of the content, and they had a new ‘Secondary Sidebar’ pop up at the bottom of the old sidebar.

If you go look at Genesis > Theme Settings, you’ll see it’s missing the Layout information completely. Below is what it should look like:

Genesis default layout

This is easy to fix. You’ll need to download a fresh copy of Genesis from StudioPress (even if your version of Genesis is completely up to date).

Make a backup of your site so you can roll back if needed. Then switch from your active child theme to a different theme (any theme like Twenty Sixteen will do).

Then, delete the Genesis theme (don’t worry, your settings will be saved!). After that you’ll want to upload the zipped Genesis file.

Once it’s uploaded, reactivate the child theme, and go check Genesis > Theme Settings. Your layout options should be back and the sidebar issue fixed.

3 Comments


  1. Tried, but didn’t work… any other ideas?

    Reply

    1. Unfortunately no – you’ll need to contact StudioPress if the problem is still happening.

      Reply

    2. Look in the “functions.php” file in your child theme and see if there is code that includes “genesis_unregister_layout”:

      genesis_unregister_layout( ‘content-sidebar-sidebar’ );
      genesis_unregister_layout( ‘sidebar-sidebar-content’ );
      genesis_unregister_layout( ‘sidebar-content-sidebar’ );
      genesis_unregister_layout( ‘sidebar-content’ );
      genesis_unregister_layout( ‘content-sidebar’ );

      If you have this code in your child theme, it may explain your problem. The child theme is “unregistering” (or deleting) the items in the Layout Information section. First one is content on the left, two sidebars on the right; second one is two sidebars on the left, content on the right. Et cetera. When the child theme unregisters them, they disappear. If you unregister all five of them … they all disappear.

      Now, there may be a good reason for this; maybe your theme author didn’t want the user to be able to change the layout. However, if somehow the “wrong” layout is selected in the system, you lose the ability to select another.

      As a solution, I’d suggest commenting out the last two items, but you may have to play around to see what works best in your child theme.

      Good luck!

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *