Archived topic
Category page description + "read more"
7 replies · Started by Michael on April 21, 2019
Hi,
I have added a description to my category page, but I only want it to show on the first page. Currently it shows on also the second page.
The second issue I have is the "Read more..." text on the each article on the category page. My customers are based in Sweden, so I would like to change it to another text. Where can I do that?
Thank you :)
GPP 1.8
Try this function for the paged archives:
add_action( 'wp', function() {
if ( is_paged() ) {
remove_action( 'generate_archive_title', 'generate_archive_title' );
}
} );
You can change the read more text in Customize > Layout > Blog.
Let me know if you need more info :)
Apologies... but should I add that in the functions.php file? Or can I do that somewhere in the theme (making sure it remains after theme updates)?
Perhaps a plugin like this: https://wordpress.org/plugins/code-snippets/
Hi there,
the Code Snippets plugin is the easiest way.
The alternative requires a Child Theme.
Great - thanks David
Glad we could be of help
Hi again David,
I hope all is well.
I have a follow-up question on the category page:
Currently I have set the Excerpt word count to 56, which on my site http://www.blojfri.se/pottrana is just fine.
But for my new site http://www.sauberwerden.de/sauberwerden, I have a different set-up on the category pages. I would still like the the excerpt word count to be 56. But I would prefer if the excerpt did not start from the top of the page.
If you go to one of the category pages you will see that I always start the page with the following text: Hilfeartikel für diejenigen, die Sauber! Hand in Hand weg von der Windel befolgen.
This means that that text is also always first in the excerpt.
Is there a way to make the excerpt start a bit in on the text?
I'm thinking either
- "hard-coding" excerpt (but that sounds difficult and tedious) or
- Somehow "hiding" the first sentence or two on page (so that the excerpt function does not see it).
Regards
Michael
Any chance you can open a new topic for the separate question?
Thanks!