Support

Home Forums Event Espresso Premium How to change ."callout" backgound colour with CSS

How to change ."callout" backgound colour with CSS

Posted: November 7, 2018 at 4:10 am


Porter

November 7, 2018 at 4:10 am

I’d really like to change the background color of the .callout class to match our branding. I’ve tried the following CSS but it is not working.

.callout {
background-color: #eee !important;}

Do you know how I can change this?

Thanks


Tony

  • Support Staff

November 7, 2018 at 5:41 am

Hi there,

Can you link me to an event I can use to view the callouts and see why the above isn’t applied?


Porter

November 7, 2018 at 7:02 am

This reply has been marked as private.


Tony

  • Support Staff

November 7, 2018 at 7:28 am

My apologies, but I think I’m missing something obvious, which element are you referring to?

Can you add a screenshot?

https://eventespresso.com/wiki/troubleshooting-checklist/#screenshots


Porter

November 7, 2018 at 7:40 am

This reply has been marked as private.


Tony

  • Support Staff

November 7, 2018 at 9:35 am

Oh, I see.

Those are within your message templates, where did you add the above CSS?


Porter

November 7, 2018 at 2:07 pm

I added it to the Child theme style.css. Should it be added somewhere else?


Tony

  • Support Staff

November 8, 2018 at 3:52 am

Yes, your child theme’s styles are not loaded within the message templates, so adding styles there won’t work. You’ll need to add the styles within the messages templates themselves, inline for each element.

To do that you’ll need to go to: Event Espresso -> Messages -> Default Message templates.

Edit the template you want to change, the screenshot provided is the ‘Payment received’ message and the ‘Primary Registrant’ context, so you’d click here – http://take.ms/1QEX2

Find the callout element(s) (in that template it’s in the ‘EVENT_LIST’ section), then add your styles inline, for example – http://take.ms/irtmb

That change will need to be made on each template and likely for multiple ‘contexts’ in each template (see HERE).


Porter

November 9, 2018 at 6:01 am

Thanks

The support post ‘How to change ."callout" backgound colour with CSS’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Porter 1 month ago ago

Topic Tags

Notifications

This topic is: resolved
Do NOT follow this link or you will be banned from the site!