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' ) ); |
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.
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
Bill Erickson says
This isn’t relevant to the post. For Genesis support, go to the StudioPress support forums.
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’ ),
) );’
Bill Erickson says
My guess is your code is running before Genesis registers its header-right sidebar, so Genesis is overwriting your settings.
Try wrapping your code in a function and hook it after
genesis_setup
, like this: https://gist.github.com/billerickson/25e1b9229b05a729986bb4cc0f0f4447