• Hi all,

    I am working on my site, but there is an issue I cannot solve.
    When I started my website, I used CSS to change the color of all links. Something like this:

    a {
    color: #005200; }

    However, now I do not want to change ALL the colors. I only want to change certain ones. This is were a problem occurs:

    Whatever I do, the color remains green (005200). Only with !important I can change the colors. Even when I remove all the additonal CSS I entered in wordpress, the links still remain green.

    Even the links in the wpadminbar are green, which are by default white.

    I also disabled plugins to find the problem, which did not work.

    Does anyone have an idea what the issue is?

    Thank you!

    • This topic was modified 4 years, 5 months ago by Finansjaal.

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Hi,
    Have you removed the color from Customizer? if yes then clear the caches of Autoptimize Plugin as the CSS coming from Autoptimize Files.

    Check this screenshot: https://ibb.co/BstbnT9

    pro-tip; you can disable Autoptimize on a per-request basis by adding ?ao_noptimize=1 to the URL.

    if the problem is not there at that point, some autoptimize (re-)configuration might be needed to fix this. there are troubleshooting tips and info on how to exclude in the AO FAQ.

    hope this helps debugging,
    frank (ao dev)

    Thread Starter Finansjaal

    (@finansjaal)

    Thank you both for your reply! Unfortunately, when I remove the CSS and clear the cache of Autoptimize and WP Super Cache (could it be a problem I have both?) the wpadminbar and other links are still green, which is not defined as primary (link) color in my theme settings..

    @optimizingmatters: Do you mean re-configure the Autoptimize plugin?

    if the problem goes away with ?ao_noptimize=1 then yes you’ll need to reconfigure AO (by excluding the offending CSS).

    Thread Starter Finansjaal

    (@finansjaal)

    @optimizingmatters Sorry for the confusing, but the problem does not go away with ?ao_noptimize=1. Any other thoughts?

    hmm, searching for the string 005200 it seems you use that color not only in the Customizer, but also in the styles defined in “ultimate addons for gutenberg”, maybe something in there?

    Thread Starter Finansjaal

    (@finansjaal)

    @optimizingmatters Sorry, I checked again and the problem does go away with ?ao_noptimize=1. Apparently there was CSS with #005200!important the first time I checked. I guess this is good news.

    Could you please give me more information how to re-configure autoptimize?

    Thank you so much!

    • This reply was modified 4 years, 5 months ago by Finansjaal.

    try unticking “also aggregate inline CSS” maybe?

    Thread Starter Finansjaal

    (@finansjaal)

    @optimizingmatters That didn’t work. However, I unchecked the ‘above the fold’ box (don’t now how it is exactly called in English). Now it seems to be working! One more question: could unchecking this box cause any issues?

    “inline & defer” you mean? but I guess in that case you should just re-generate that “above the fold CSS”?

    Thread Starter Finansjaal

    (@finansjaal)

    I guess that would be the best option, yes. I already planned to ‘clean’ the CSS soon (i.e. remove all !important). So I think it is best to regenerate after I change the CSS. Thank you!

    • This reply was modified 4 years, 5 months ago by Finansjaal.

    Graag gedaan JG ??

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Twenty Twenty link color’ is closed to new replies.