Page 1 of 1

Title Color

Posted: Mon Oct 17, 2022 10:51 pm
by jonathanm
If I change the title color, it also changes the font color of the left-side TOC and footer links.

How can I change the title font color only?
image 1.PNG
image 1.PNG (197.62 KiB) Viewed 1346 times
image 2.PNG
image 2.PNG (200.27 KiB) Viewed 1346 times

Re: Title Color

Posted: Mon Oct 17, 2022 10:55 pm
by jonathanm
a, a:hover, a:visited {
color: #ed242d;
}

This changes all of those colors. I need title only standaline color that not linked to other fonts.

Re: Title Color

Posted: Tue Oct 18, 2022 12:10 pm
by Costin
Hi Jonathan,

Indeed, using the CSS rule as it is now, will match all the links, in all of their three variations, not only the publication title link.
To match only the publication title, you should use a selector with a higher specificity (like the class associated to the publication title element).
I.e:

Code: Select all

.wh_publication_title a,
.wh_publication_title a:hover,
.wh_publication_title a:visited {
  color: red;
}
Regards,
Costin

Re: Title Color

Posted: Tue Oct 18, 2022 1:23 pm
by Harvey87
Hello and thank you for this advice. I also changed the colour of the title of my site and it had the same effect with the links in the table of contents. But now it works thanks to your advice.

Thanks again,

Re: Title Color

Posted: Tue Oct 18, 2022 3:41 pm
by jonathanm
It worked! Thank you, Costin.