Archived topic
Targeting a category
5 replies · Started by Erika on April 29, 2021
Hi there,
instead of a blog page, I created a category page and I am trying to target the .entry-title and the links either by settings in the customizer or by css. However I have a problem with the colors. It looks like that the a:hover of the entry-title is white and I can´t get the links (author-name and more...) get the color I want. After spending two hours on it, could you take a look, please? What do I do wrong?
Thank you, Erika
Hi there,
in Customizer > Colors > Content you have the following color options:
Archive Content Title
Archive Content Title Hover
Entry Meta Text
Entry Meta Links
Entry Meta Links Hover
The first two are specific to the archive content title - the others will apply to the archives and the single post.
Let me know if that resolves the issue.
Hi David,
these settings I know. However, the visited links are sometimes white and I can´t figure out why. Also the "more" link is not green, except I add this extra css.
I have added this css:
.cat-11-id a:hover {text-decoration:underline !important;}
.cat-11-id a:visited {color:#3fa535 !important;}
.cat-11-id .read-more a:link, a:visited {color:#3fa535 !important;}
.cat-11-id .read-more a:hover {text-decoration:underline !important;}
But not even with !important does it behave right. No underlining and it also seems that the primary navigation has changed its color as well. I send you two screenshots in the private information.
Can you figure out what is wrong?
Thanks, Erika
Hi Erika,
You are using the incorrect CSS class for the category page, try .category-11 instead of .cat-11-id.
Let me know how it works :)
Hi Ying,
thanks a lot, I had the idea that I was doing something wrong... It works now ;)
Awesome :)
You are welcome!