Learn with this tutorial how to modify the text “Continue reading” or “Read more” depending on the category in any Genesis Framework child theme using code.
Of all the possible ways to customize a Genesis template, in most cases we focus only on the aesthetic part.
However, it is worth making small changes to the theme texts so that they too are aligned with the brand.
For example, in the archive pages you could replace the default phrase in your child theme with a more appropriate one, for example, “Keep reading” instead of “See more“or vice versa.
And you know what would be even better? Use different texts depending on the category the entries belong to.
To do this you just need to use a Genesis filter.
Snippet to change the text that invites to read more depending on the category of the entry
Add this snippet to the end of the functions.php file:
With this fragment, the text will be “Read tutorial” when you are in the archive page of the “tutorials” category and “Read news ” in the case of news.
These are just simple examples. I invite you to modify them according to your needs or those of the website you are working on.
However, if you want to customize the text independently of the category use this other tutorial.
Now you know how to change the text that prompts to “Read More” depending on the category in any Genesis child theme by code.
Any questions? I read you in the comments.
And if you want to give me any suggestion for future tutorials, leave it in the contact form. Advantages of being a subscriber. 😉