Hide author at category pages and search results
-
Hi. I need to hide only the author icon + name author at category pages like this one (https://letrasypoesia.com/category/autores/yamila-alvi-espana/) and search results pages like this one (https://letrasypoesia.com/?s=lluvia). Only that, not the other meta data.
The blog I need help with is: (visible only to logged in users)
-
For this you would need:
.search-results .byline, .category .byline { display: none; }If you need to expand that to other types of pages, view source and look for the page type in the body class. Then add a comma behind
.category .bylineand add a similar selector for that page type. -
Also, while I can see you’ve done quite a bit of work on this theme, I do want to point out that the newer FSE themes don’t require CSS (or if there is any, it’s minimal.)
If you’re interested, you can learn more here:
https://wordpress.com/support/full-site-editing/Full Site Editing is a whole new world with frequent updates, so if you’re interested, I’d recommend joining one of our webinars, too:
https://wordpress.com/webinars/
- The topic ‘Hide author at category pages and search results’ is closed to new replies.