• Resolved Christian

    (@cronosalblog)


    Hello,

    I just found that Astra doesn’t allow me to set the excerpt to “0”. I tried to remove the excerpt using “entry-content clear” but unfortunately, it also affects the content.

    Is there any way to disable excerpts on the archive page?

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello @cronosalblog

    Yes, you can surely achieve this using the following filter –

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

    I hope that helps.

    Regards,
    Suman

    Thread Starter Christian

    (@cronosalblog)

    Thank you so much!
    For those who don’t know where to put the code, just add it to the functions.php file or use the Code Snippets plugin.

    But it would be better if that feature is available on the theme options.

    • This reply was modified 4 years, 3 months ago by Christian.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to remove excerpt?’ is closed to new replies.