• Hi, I want to disable the_excerpt So I used this code.

    add_filter( 'the_excerpt', 'filter_the_excerpt', 10, 2 );
        function filter_the_excerpt( ) {
        return ' ';
     }

    But this function also removed the Read More button

    How to disable the_excerpt without removing the readmore button.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @vikral,

    Please try the following CSS code instead and modify it as needed.

    .blog .entry-content p:not(.read-more) {
        display: none;
    }

    I hope it will help.

    Kind regards,
    Herman ??

    Thread Starter vikral

    (@vikral)

    Thanks That Worked… But I also want to disable the_excerpt on category and tag pages.

    Hi @vikral,

    Please try the following CSS

    .archive .entry-content p:not(.read-more) {
        display: none;
    }

    I hope it will help. Feel free to reach out to us if you have any further queries.

    Kind regards,
    Herman ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Disable Excerpt On HomePage’ is closed to new replies.