Pretty Young Thing – Removing "Continue Reading" at post bottom

Community Forums Forums Design Tips and Tricks Pretty Young Thing – Removing "Continue Reading" at post bottom

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  David Chu 1 year, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #31386

    hartdesign
    Participant
    Post count: 2

    So, I’m poking around in the .php for the Pretty Young Thing theme and trying to remove the “Contine Reading” on the main post of the front page of the site… Can anyone give me a tip for how to get rid of this?  I’ve tried a few things to no avail…

    The site I’m currently building is http://www.simplysistersbaths.com

    Thank you!

    #31393

    David Chu
    Participant
    Post count: 1428

    Hi!
    The quickest, dirtiest method would be to add this bit of CSS to your stylesheet:

    [css]
    .home .entry-content p {
    display: none;
    }
    [/css]

    ..which vanishes homepage paragraph content. :-)

    If you’re comfy editing code, a nicer way is taken right from here, but altered. The following would be added to functions.php. I’m just returning one blank space instead of some content. The is_home part limits it to your homepage. I didn’t test it, so check it over.

    [code]
    add_filter( 'get_the_content_more_link', 'custom_read_more_link' );
    function custom_read_more_link() {
    if ( is_home() ) {
    return ' ';
    }
    }
    [/code]

    Cheers, Dave


    Dave Chu · Custom WordPress Developer – likes collaborating with Designers

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

You must be logged in to reply to this topic.