• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Remove entry-content from infinite scroll homepage

Welcome!

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.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Remove entry-content from infinite scroll homepage

This topic is: not resolved

Tagged: entry-content, Excerpt, infinite scroll

  • This topic has 4 replies, 2 voices, and was last updated 11 years ago by Tom.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • March 27, 2014 at 12:25 pm #96985
    nkeat
    Member

    Hello,

    I was wondering what the best practice in genesis to hide the excerpt from posts on the homepage (infinite scroll).. Right now i'm using CSS as a temp fix, see screenshot.

    "#infinite-view-4 .entry-content, #infinite-view-5 .entry-content, #infinite-view-6 .entry-content, #infinite-view-7 .entry-content, #infinite-view-8 .entry-content {
    display: none;
    }"

    Thanks!

    March 30, 2014 at 1:45 pm #97514
    Tom
    Participant

    Screenshot ?

    Also: Link? Theme?


    Choose your next site design from over 350 Genesis themes.
    [ Follow me: Twitter ] [ Follow Themes: Twitter ] [ My Favourite Webhost ]

    April 29, 2014 at 1:29 pm #102978
    nkeat
    Member

    Ya here is the screenshot without the "display:none" (see inspector)

    View post on imgur.com

    And here is how it is supposed to look with display none enabled (see inspector).

    View post on imgur.com

    The issue is that obviously the pages created by infinite scroll increase every 10 articles. Hence the need to create css markup seen in my originial question.

    I'm wondering the what the proper function is so I can achieve this (remove entry content from homepage index) without using css.

    Thanks!

    April 29, 2014 at 1:39 pm #102980
    nkeat
    Member

    **To clarify, the following function works for the first page, before the infinite scroll kicks in (ie I dont have to hide via css for the first page).

    How can I adapt this function to include pages that are loaded by infinite scroll?

    add_action('genesis_before','remove_some_actitons');

    function remove_some_actitons() {

    if ( is_home() ) {

    remove_action( 'genesis_entry_content', 'genesis_do_post_content' );
    }

    }

    April 29, 2014 at 8:17 pm #103023
    Tom
    Participant

    So it seems you've got a working custom function, and a work-around for the conflict with infinite scroll.

    Without knowing the code that's delivering the infinite scroll it makes it kinda tough to know how to work around it - how to control its effect on the loop output.

    You could follow-up with your dev/plugin guys, maybe check-in at Appfinite, too.


    Choose your next site design from over 350 Genesis themes.
    [ Follow me: Twitter ] [ Follow Themes: Twitter ] [ My Favourite Webhost ]

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble