• Hi how can i hidden the ellipsis and the “read more” in post list and grid excerpts?

    • This topic was modified 7 years, 3 months ago by kipiyo.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • You can hide the read more by adding this CSS to Theme Options> Custom CSS:

    a.kt-excerpt-readmore.more-link {
        display: none;
    }

    If you want to get rid of the ellipsis, I believe you need to use a custom excerpt. You can do this by going into the post options, and finding “Screen Options” at the top of the edit screen.

    Be sure that “Excerpt” is ticket, and then scroll down the page to add your custom excerpt. Only your custom excerpt will display, no ellipsis.

    Let me know if this works for you.

    -Kevin

    Thread Starter kipiyo

    (@kipiyo)

    Hi

    Thx Kevin, the css code works ??

    But a custom excerpt no hidden the ellipsis (and “Read more”).

    I find a solution add this code on “functions.php” child theme

    
    function trim_excerpt($text)
    {
    return str_replace('… ', '', $text);
    }
    add_filter('the_excerpt', 'trim_excerpt'); 
    
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hidden ellipsis in post list/grid excerpts’ is closed to new replies.