Remove read more from blog page - show entire post.

Discussion in 'Woodberry WordPress Theme' started by edandrea, Jan 16, 2014.

  1. edandrea

    edandrea New Member

    Joined:
    Nov 25, 2013
    Messages:
    19
    Likes Received:
    2
    Location:
    Bellevue, WA
    I want the entire post to show without the readmore. I would think you could change this in blog.php or loop.php. I am using a child them and have copied them both to my child theme directory.

    We only want to use read more for extremely long posts, and can use the excerpt feature of WP when we want to. How do we change the default to show the entire post?

    Read More also appears in two places. When we do use it we don't need both instances. How can we fix this?

    Ed



     

    Attached Files:

  2. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    Hello,

    Go to functions.php present in your theme directory and add the code given below

    Code:
    function custom_excerpt_length( $length ) {
        return 200;
    }
    add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );
    Check image for reference
    2014-01-16_1644.png


    Increase "return" value as per your requirements.



    Thanks & Regards
    Gourav Shrivastava
     
  3. edandrea

    edandrea New Member

    Joined:
    Nov 25, 2013
    Messages:
    19
    Likes Received:
    2
    Location:
    Bellevue, WA
    That made the excerpt longer, but there is still a Read More link at the bottom, even though it is showing all the text and we don't need to read more. We don't just want to make the excerpt longer, we don't want to use excerpts at all, and we don't need a Read More link if the the entire text is showing.
     

    Attached Files:

  4. Piyush

    Piyush Support Staff

    Joined:
    Dec 8, 2012
    Messages:
    4,745
    Likes Received:
    107
    Hello,

    Unfortunately there isn't a way to remove the read more link for the particular text length of post from the blog pages unless you custom code something up. Sorry.

    But you can permanently remove this with the custom css code from the blog page,
    to achieve this paste the code given below in Custom CSS section
    (Appearance -> Theme Options -> Styling Options -> Custom CSS) of your dashboard.

    Code:
     .page-content .content-bar .post .post_content a.read-more {
    display: none;
    }
    
     

Share This Page