Site logo

Archived topic

How can I override the abstract settings in archive?

3 replies · Started by sirlouen on June 1, 2021

Viewing posts 1–4 of 4

I've loaded many of the site import example templates and all have one thing in common

In the blog archive, the result for the abstract of each article is always the same: in each article I have the "Read More" block and the abstract is taking
all the content from the beginning to that block

This:

The problem is, that this particular site, used to have an old template where this "read more" block was useful in the past, but with the current Generatepress templates, this is not visually good any more, and I would prefer to set a limit in words for each abstract.

The problem is that the word limit in the Customizer-> Design-> Blog is not working at all. I've set it to 25 words but is not using 25 words but what I've said above, unless I remove the "Read More" Block for every single article. (There are like 1000+)

Hi there,

you can add this PHP Snippet to get GP to ignore the More tag:

add_filter( 'generate_more_tag', '__return_empty_string' );

Thanks! I wonder if there is a similar function for WP Show Posts, which uses the template

This archived topic is closed to new replies.