Community Forums › Forums › Archived Forums › Design Tips and Tricks › Stretch Theme – remove content from home page
Tagged: homepage, remove home content, Stretch theme
- This topic has 10 replies, 5 voices, and was last updated 12 years, 7 months ago by
thecaptclay.
-
AuthorPosts
-
February 20, 2013 at 3:43 am #21600
stephencounsell
MemberHi,
I need to remove the content (post) from the home page only.
I'm pretty green on Genesis still and can't see where the content is being set. All I see in the index.php file is genesis() and can't see any reference to home page in functions.php either.
any help greatly appreciated.
Steve
February 20, 2013 at 3:50 am #21602Sridhar Katakam
ParticipantCan you please provide the URL of your site?
Are you trying to show a static Page on your site's homepage?
February 20, 2013 at 3:52 am #21603stephencounsell
MemberMy site test URL is:
http://1064727136.1055256391.temp.prositehosting.co.uk
The site will have a menu top left and a background image.
Other pages will have sliders and photos.
Thanks
February 20, 2013 at 3:59 am #21605Sridhar Katakam
ParticipantUntil someone else gives a proper solution, here's a temporary workaround.
Add the following at the end of child theme's style.css (WP dashboard -> Appearance -> Editor):
.home .hentry {
display: none;
}
February 20, 2013 at 4:01 am #21606stephencounsell
MemberThanks Sridhar!
February 20, 2013 at 8:38 am #21640stephencounsell
Memberthe temp solution from Sridhar:
.home .hentry {
display: none;
}does not really work as there is still the black content wrapper on screen.
Anyone know what the real solution to this is?
February 20, 2013 at 8:42 am #21642Sridhar Katakam
ParticipantFebruary 20, 2013 at 9:34 am #21669stephencounsell
MemberThanks again Sridhar.
I'm also experimenting with home.php as the real solution but more research needed
April 15, 2013 at 7:36 pm #35685Rahn and Dianna
MemberI know this is an old thread, and it looks like you got it figured out. (Site looks good, by the way.)
How did you end up doing it?
Could you just create a page with no content in it, and set "use static front page?"
April 16, 2013 at 12:25 am #35712Brad Dalton
ParticipantThe correct way to do this is to remove the loop so posts aren't displayed on the home page.
Add this remove action before the closing
genesis();
tag in your child themes home.php file:
remove_action( 'genesis_loop', 'genesis_do_loop' );
You can then use CSS to target any of the markup or HTML elements you want to hide on the home page.
April 18, 2013 at 4:05 pm #36230thecaptclay
MemberI've added a home.php file and I tried removing the loop. However, if you remove the loop through an action in home.php, the stretch image vanishes. So, I kept the loop, added a widget area but also had to remove the post (via CSS).
There has to be a better way to do this. It's serviceable right now but not how it should be.
All I wanted to do was remove the loop (no posts on the front page) and add a widget area to the front page. Sounds simple.... but....
Now I'm trying to figure out how to add a header image in place of the standard text. Anyone have any suggestions....?
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.