Archived topic
Editing blog Posts
6 replies · Started by Asiya on July 21, 2020
Hi,
I would like to remove the categories links on my blogs that say "news" and "uncategorized". I would also like to remove the dates from them and "by mollygene" next to the dates.
Thank you!
Asiya
Hi there,
this document provides the PHP Snippet to disable Category Links:
https://docs.generatepress.com/article/generate_category_list_output/
And you can disable other post meta such as Author and Date using the Blog Layout:
https://docs.generatepress.com/article/layout-element-overview/
So if i copy and page the category disable Code to my additional CSS- It throws an error saying "markup is not allowed in CSS"
I copied the PHP snipper directly.
Let me know if I am doing something wrong.
Thanks David as always.
That code goes in your Child Theme functions.php of if you're not using a child theme, add the code to the site using Code Snippets plugin.
More info here:
PErfect- I added it- it removed the link but the Category text still shows. The link is gone but the text remains. I would like to remove the Author, Category and date.
Never mind figured it out! Thank you!!
Glad to hear that.