Archived topic
How do I keep heading and content link colors separated?
3 replies · Started by Erman on October 27, 2021
Hi all,
I'm currently trying to change the color of my headings and paragraph links on http://www.alltomhusdjur.com.
I would like the h2.wp-show-posts-entry-title to be default text color, and the links in my post paragraphs to be of a certain blue color for highlighting purposes.
However, whenever I change the link color in the content or body part of the color section in the customizer, it changes the color of both the headings and the paragraph links.
How can I make sure that only the paragraph links colors are changed?
Thank you!
Hi Erman,
You'll need a custom CSS approach to this.
Leave h2.wp-show-posts-entry-title a as it is if you wish to keep its current color.
As for the paragraph, try this CSS:
.entry-content p a {
color: your blue color here;
}
/* paragraph links hover color*/
.entry-content p a:hover {
color: hover color here;
}
Hi Elvin,
Thank you so much!
That worked perfectly :)
Appreciate your help once again!
No problem. Glad to be of any help. :D