Where to add css

Hi, I need to add CSS but I don’t know where to add it.
I have tried adding it in both the Content CSS and extra CSS, but it doesn’t work.

I just want to change the color of a button (addevent, add to calendar) on this page http://www.findusfisketirsdag.no

This is the code.
.addeventatc {background-color:#df3402;color:#fff!important;}
.addeventatc-selected {background-color:#c31d02;}

  1.   .addeventatc .addeventatc_icon {background:url(https://www.addevent.com/gfx/icon-calendar-fff-t1.svg) no-repeat;}
    

This is the button in question:

Kind regards, Baard

Hi Baard.

Please add the code in X > Theme Options > CSS.

Hope this helps.

Hi, thanks for your answer. It helps when I add the code, but after saving it and refreshing the page, it is gone.

It looks ok first. Then it changes back.

Hi,

I can see you have wp super cache installed. After adding your css code, make sure to clear your plugin cache and browser cache.

Thanks

Thanks for the tip. I cleaned my cache, but button is still white, not red.
I have tested it in different browsers.

Hi,

You can try this code instead.

body .addeventatc {background-color:#df3402 !important; color:#fff !important;}
body .addeventatc-selected {background-color:#c31d02 !important;}
body .addeventatc .addeventatc_icon {background:url(https://www.addevent.com/gfx/icon-calendar-fff-t1.svg) no-repeat !important;}

Hope this helps

Yes, it helps a lot. My heart feels much lighter now. Thanks for all your help :slight_smile:

You’re welcome! :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.