- This topic has 9 replies, 2 voices, and was last updated 6 years, 8 months ago by .
- The topic ‘Glam Theme – Front Page Remove Sidebar’ is closed to new replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
Hello. I'm working with the Glam theme for a client of mine and she wants to have a few of her recent post shown on the homepage but not the sidebar. I think I can remove the coding for the sidebar but didn't want to screw the pooch and do it without a pro's opinion.
She would, however, like the sidebar on the blog pages.
Can anyone help please?http://sueglashower.com/
By adding this
//* Remove content/sidebar layout
genesis_unregister_layout( 'content-sidebar' );
Will also remove it from the blog pages? Or would this just go into the front-page?
Add this in front-page.php after the opening <?php tag
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
You are the bomb-diggity, Brad! Thanks so much!
I found this in the front-page.php
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_content_sidebar' );
Can I just alter that second part?
AWESOME! It worked! Thank you!
I gotcha! 🙂
© 2023 WPEngine, Inc.