Archived topic
Categories Message
11 replies · Started by Kle on May 15, 2018
Hi there, I have some active categories on my blog tha have no posts. When clicking them I get the message: It seems we can’t find what you’re looking for. Perhaps searching can help"
How can I change/customize this message? Thank you.
Hi there,
I believe you have to overwrite this file in your child theme:
https://github.com/tomusborne/generatepress/blob/6ec2a01ae8141ead5e379a4b2370d01ca3344045/no-results.php
You can see the message in there.
Will ask Tom to confirm :)
Those strings really need filters.
If you don't want to overwrite the template file, you can use this plugin: https://en-ca.wordpress.org/plugins/say-what/
Simply add the text as shown in the template, and add generatepress as the text domain.
Thank you Tom and Leo: ) It seems like a useful plugin to have, and I guess it cannot be done with the plugin Snippets?
Unfortunately not.
Sounds like Tom will be adding a filter soon :)
Awesome! If there's a way to know when that's out would be great. Thank you Leo:)
Glad we could help!
Please Make Filters Tom
Thank You
Please Make Filters Tom
+2
I just purchased GeneratePress Pro and love it.
Any filters for this yet?
If not, when I update GeneratePress Pro will I need to remake the customizations to no-results.php
Hi there,
not yet :( - i'll remind Tom.
Advisable to follow Leo's instructions and create a copy of the template in your child theme:
https://generatepress.com/forums/topic/categories-message/#post-577316
This will keep the changes safe when the Theme is updated.
I don't want a child theme just for these strings. I use code snippets rather than a child theme. Yes, GeneratePress is that good.