How to hide links to categories and tags in GeneratePress


If you use the GenaratePress theme, one of the most popular and used in WordPress, there are things you have to pay to be able to configure, having a freemium model, but you can also do them with a little bit of skill.

One of these configurations or settings is not to display links to categories, tags and other metadata in both the file (blog) pages and the posts. This is known as meta data, or entry metadata.

Furthermore, it is a good measure for SEO that the archive pages, especially if it is your blog home page, have the right and necessary links, avoiding any additional unnecessary links, so removing these links to the metadata is a measure you should consider applying.

With GeneratePress Premium it’s very easy, with just a click, because one of the modules included in the professional version allows you to configure where you want this metadata to be displayed or not.

But if, like thousands of users, you use the free version of GeneratePress, you can also get it.

The magic of CSS

Well, yes, and it is very easy with these simple CSS tricks.

Just add the code you want to apply to the “Additional CSS” section of the WordPress customizer.

Hide category links

.cat-links { display: none; }
Code language: CSS (css)

Hide all links to metas on the home page

.home .entry-meta { display: none; }
Code language: CSS (css)

Hide all links to metas in entries

.entry-meta { display: none; }
Code language: CSS (css)

Of course, you will see how the links to categories, links, etc., the metadata, disappear automatically.

All you have to do now is to publish the changes and make them visible (in this case the opposite) to all your visitors and search engines.

Read this post in Spanish: Cómo ocultar los enlaces a categorías y etiquetas en GeneratePress

How useful was this post?

Click on a smiley to rate it!

Average rating 1 / 5. Vote count: 1

No votes so far! Be the first to rate this post.

As you found this post useful...

Follow us on social media!

5 thoughts on “How to hide links to categories and tags in GeneratePress”

  1. Hi,
    I applied the code above to hide all links to metas on my home page. It hid my category and tag links like I wanted but also hid the post date. I would like to keep the date. Do you know how I can do this? Thanks

    1. Try using the .home example but instead of the text that it has after “.home” use the one above about categories and let me know if it worked for you.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top