Stretch Theme – remove content from home page

Community Forums Forums Design Tips and Tricks Stretch Theme – remove content from home page

This topic is: not resolved

This topic contains 10 replies, has 5 voices, and was last updated by  thecaptclay 1 year, 5 months ago.

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #21600

    stephencounsell
    Participant
    Post count: 15

    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

    #21602

    Sridhar Katakam
    Participant
    Post count: 1013

    Can you please provide the URL of your site?

    Are you trying to show a static Page on your site’s homepage?


    #21603

    stephencounsell
    Participant
    Post count: 15

    My 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

    #21605

    Sridhar Katakam
    Participant
    Post count: 1013

    Until 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;
    }


    #21606

    stephencounsell
    Participant
    Post count: 15

    Thanks Sridhar!

     

     

    #21640

    stephencounsell
    Participant
    Post count: 15

    the 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?

     

    #21642

    Sridhar Katakam
    Participant
    Post count: 1013
    #21669

    stephencounsell
    Participant
    Post count: 15

    Thanks again Sridhar.

    I’m also experimenting with home.php as the real solution but more research needed

     

    #35685

    Rahn and Dianna
    Participant
    Post count: 8

    I 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?”

     


    #35712

    braddalton
    Participant
    Post count: 9724

    The 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 [php]genesis();[/php] tag in your child themes home.php file:
    [php]
    remove_action( ‘genesis_loop’, ‘genesis_do_loop’ );
    [/php]

    You can then use CSS to target any of the markup or HTML elements you want to hide on the home page.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #36230

    thecaptclay
    Participant
    Post count: 5

    I’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 1 year, 5 months ago by  thecaptclay.
    • This reply was modified 1 year, 5 months ago by  thecaptclay.
    • This reply was modified 1 year, 5 months ago by  thecaptclay.
    • This reply was modified 1 year, 5 months ago by  thecaptclay.
Viewing 11 posts - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.