[Resolved] Override Read More tag in all posts

Home Forums Support [Resolved] Override Read More tag in all posts

Home Forums Support Override Read More tag in all posts

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1540915
    Kia

    Hi,

    We would like to display our archive pages (eg: https://www.atlasandboots.com/tag/seven-summits/) in a column view. However, when we set this, we cannot reduce the Excerpt word count, presumably because we have used ‘read more’ blocks in our posts. We could individually remove the read more tags from all 1,000+ posts, but this will take an extremely long time. Is there a way to get GP to override the Read More tag in all posts?

    Many thanks.

    #1541175
    David
    Staff
    Customer Support

    Hi there,

    you can add this PHP Snippet to your site so GP ignores the More Tag and uses the Auto Excerpt:

    add_filter( 'generate_more_tag', '__return_empty_string' );

    https://docs.generatepress.com/article/adding-php/

    #1541192
    Kia

    Great. Thanks for your help.

    #1541198
    David
    Staff
    Customer Support

    You’re welcome

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.