Rename the sidebars on Sixteen Nine theme

I was helping a friend set up a website using the Sixteen Nine theme today. I was writing some notes on managing the theme since he’s very non-technical, and I found that the sidebars were more confusing than they need to be.

The site has two layout options: Content Sidebar or Full Width Content. So “Primary Sidebar” will only ever appear on the right. It also uses the “Header Right” sidebar as a left sidebar, so the actual site looks like Sidebar Content Sidebar.

I was telling my friend “to manage the left sidebar, go to Appearance > Widgets > Header Right. To manage the right sidebar, go to Appearance > Widgets > Primary Sidebar”. But there’s an easier way – just rename the sidebars to Left Sidebar and Right Sidebar.

Add this to the functions.php file of Sixteen Nine (without the <?php at the top):

<?php
//* Rename Sidebars
unregister_sidebar( 'sidebar' );
unregister_sidebar( 'header-right' );
genesis_register_sidebar( array( 'id' => 'header-right', 'name' => 'Left Sidebar' ) );
genesis_register_sidebar( array( 'id' => 'sidebar', 'name' => 'Right Sidebar' ) );
view raw functions.php hosted with ❤ by GitHub

Want something similar for any Genesis theme? Check out my Genesis Left Right Sidebar plugin. It’s real simple. It renames the sidebars to Left Sidebar and Right Sidebar, and makes sure those sidebars are always in the correct spot. So if you use Sidebar Content layout, you have the left sidebar on the left. If you use Sidebar Content Sidebar, the left one is still on the left and the right one is on the right.

Bill Erickson

Bill Erickson is the co-founder and lead developer at CultivateWP, a WordPress agency focusing on high performance sites for web publishers.

About Me
Ready to upgrade your website?

I build custom WordPress websites that look great and are easy to manage.

Let's Talk

Reader Interactions

Comments are closed. Continue the conversation with me on Twitter: @billerickson

Comments

  1. Mario says

    Hello,

    sorry if I ask for your help, but I couldn’t find a solution to solve it by myself.

    I would like to add the post_tags in every post in the after_entry or after_comments (wherever is fine, the important thing is that it must be shown only in single posts), but the genesis shortcodes for post_meta don’t work. How can I do?

    Thank you in advance.

    Regards

  2. Joyce Grace says

    Hi, I’m curious if this is still relevant to the most up to date version of genesis?

    I’m trying to rename header right, since I’ve moved it below the title-area and centered it. Below is what I’ve got, but all this does is it move “header right” widget (still called Header Right) below “secondary sidebar” on the widgets screen. Nothing else changes.

    Any ideas?

    ‘//*Rename Header Right since it’s not on the right anymore
    unregister_sidebar( ‘header-right’ );

    genesis_register_sidebar( array(
    ‘id’ => ‘header-right’,
    ‘name’ => __(‘Header Ad’,’news-pro’ ),
    ‘description’ => __( ‘This area appears right below the logo and is centered. It is meant to hold an ad creative.’, ‘news-pro’ ),
    ) );’