Forum Replies Created
-
AuthorPosts
-
xtegoMember
I figured it out. I made changes to genesis-simple-sidebars/plugin.php. I replaced these lines:
function ss_sidebars_init() {
remove_action( 'genesis_sidebar', 'genesis_do_sidebar' );
remove_action( 'genesis_sidebar_alt', 'genesis_do_sidebar_alt' );
add_action( 'genesis_sidebar', 'ss_do_sidebar' );
add_action( 'genesis_sidebar_alt', 'ss_do_sidebar_alt' );}
with this (based off of your original suggestion):
function ss_sidebars_init() {
if (!is_home()) {
remove_action( 'genesis_sidebar', 'genesis_do_sidebar' );
remove_action( 'genesis_sidebar_alt', 'genesis_do_sidebar_alt' );
add_action( 'genesis_sidebar', 'ss_do_sidebar' );
add_action( 'genesis_sidebar_alt', 'ss_do_sidebar_alt' );}
}
This, in effect, maintains the standard sidebars for the home page, while all other pages get simple sidebars. Thanks for pointing me in the right direction.
xtegoMemberI shouldn't have to use Genesis Layout Extras. All I have to do is remove the Primary Sidebar from one page. I've done it before with a single line added to home.php when I was using the default sidebars. Simple Sidebars obviously has a different name for the action. I'm trying to figure out what that is.
I've tried adding the following line to home.php, but to no avail:
remove_action('genesis_sidebar', 'ss_do_sidebar');
xtegoMemberGenesis Layout Extras would work nicely, however, I need to maintain the secondary sidebar. There is no option for "Content-Secondary" that I see.
Can you explain where I would use the conditional tag?... (you'll have to forgive me, I'm not much of a coder)
Thanks!
xtegoMemberDude! That's worked perfectly. Exactly what I was looking for. Thank you!
xtegoMemberThanks for the response. That does force full width, however, it also removes the secondary sidebar which i still need. Really i just need to hide the Primary sidebar from the home page and extend the blog text over the area where the primary sidebar is.
To maybe better explain what I am trying to do... if you look at the education theme demo. On the demo homepage, everything above the "join our newsletter" orange ribbon should stay the same. Below the ribbon, I want to hide the primary sidebar (Search, tweets, profile, etc) and use that whole area for the blog entries.
I'm thinking this will be more of a CSS change perhaps?
(Also, I can't switch the location of the primary and secondary sidebars because they are relied on on other pages. )
-
AuthorPosts