Remove Posts from Homepage in Education Child Theme

Community Forums Forums Design Tips and Tricks Remove Posts from Homepage in Education Child Theme

This topic is: not resolved

This topic contains 12 replies, has 6 voices, and was last updated by  dhuse 1 year, 5 months ago.

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #1643

    SethResler
    Participant
    Post count: 17

    Hi! I’m using the Education Theme and I’d like to remove the posts from the bottom of the homepage entirely. I’d like the homepage to go from the Call to Action section to the Footer. Thanks!

    #1644

    SoZo
    Moderator
    Post count: 1573

    Add this to home.php
    remove_action( 'genesis_loop', 'genesis_do_loop' );


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    #1658

    SethResler
    Participant
    Post count: 17

    This works, but the primary sidebar still shows up. How do I remove that from just the homepage? Thanks!

    #1659

    SoZo
    Moderator
    Post count: 1573

    What is the URL?


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    #1661

    SethResler
    Participant
    Post count: 17

    http://tastetrekkers.com

    Scroll to the bottom and you’ll see the “Event Schedule” which is from the primary sidebar.

    #1663

    SoZo
    Moderator
    Post count: 1573

    Add this to your style sheet
    .home #content,
    .home .sidebar {
    display: none;
    }


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    #1669

    SethResler
    Participant
    Post count: 17

    We’re close! That eliminated the primary sidebar, but it also eliminated the secondary sidebar, which I do want to display on the homepage. I only want to get rid of the primary sidebar.

    #1670

    SoZo
    Moderator
    Post count: 1573

    Okay, in that case use #sidebar in place of .sidebar


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    #1694

    SethResler
    Participant
    Post count: 17

    Perfect, thanks for your help!

    #1725

    ecillin
    Participant
    Post count: 2

    Hi SoZo, where in the home.php does the remove_action( 'genesis_loop', 'genesis_do_loop' ); code go??

    #1837

    Michael
    Participant
    Post count: 37

    Greetings-  I am also using this Child Theme and basically trying to do the same thing you did Seth with SUCCESS thanks to this post.  Thank you Sozo for your expert help!

    I have a tip for you Seth if I may be so bold.  If you want the orange banner in the “call to action” widget to better match your red color scheme, take the following files into photoshop and adjust their color to more closely coordinate with the reds in your site design-

    banner-texture.png
    banner-right.png
    banner-left.png

    Then upload them back into the same directory and overwrite the current files, replacing them with the newly re-colored files.

    To me, the orange clashes with the red, but I admit it’s a very subjective thing.  You may like the look with the orange, in which case, please ignore my tip!

     

    #3255

    WebMC
    Participant
    Post count: 3

    Hi I also wanted to remove the posts from the bottom of the home page and followed instructions above. However  it removed the images from my featured widget section (where it brings in the featured images for the four featured pages) is there any way to bring them back?

    #39168

    dhuse
    Participant
    Post count: 2

    When I add

    remove_action( ‘genesis_loop’, ‘genesis_do_loop’ );

    It removes the posts  but I have a blank empty white section at the bottom of the page. Is there any way to remove it?

Viewing 13 posts - 1 through 13 (of 13 total)

You must be logged in to reply to this topic.