Community Forums › Forums › Design Tips and Tricks › Stretch Theme – remove content from home page
Tagged: homepage, remove home content, Stretch theme
This topic contains 10 replies, has 5 voices, and was last updated by thecaptclay 2 months ago.
-
AuthorPosts
-
February 20, 2013 at 3:43 am #21600
Hi,
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 #21602Can 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 #21603My 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 #21605Until 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 #21606Thanks Sridhar!
February 20, 2013 at 8:38 am #21640the 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 #21642.home #content {
display: none;
}February 20, 2013 at 9:34 am #21669Thanks again Sridhar.
I’m also experimenting with home.php as the real solution but more research needed
April 15, 2013 at 7:36 pm #35685I 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 #35712The 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.
WordPress Developer & Consultant
Brad Dalton @ WP Sites – Click Here to Get Genesis Child Theme Tips Delivered.April 18, 2013 at 4:05 pm #36230I’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….?
-
This reply was modified 2 months ago by
thecaptclay.
-
This reply was modified 2 months ago by
thecaptclay.
-
This reply was modified 2 months ago by
thecaptclay.
-
This reply was modified 2 months ago by
thecaptclay.
-
This reply was modified 2 months ago by
-
AuthorPosts
You must be logged in to reply to this topic.