Support

Home Forums Event Espresso Premium ESPRESSO_CART_LINK "Attention" error message is not styled

ESPRESSO_CART_LINK "Attention" error message is not styled

Posted: February 25, 2014 at 2:37 pm


Glen Roethel

February 25, 2014 at 2:37 pm

My Espresso Add to Cart button is working, giving an “Attention” message, but the message is unstyled.

“Attention
We’re sorry. Either an error occurred or the event(s) you were attempting to register for may no longer be open for registration.”


if ( empty( $event_id )) {
$error = "<div class='event_espresso_error'><p>" . __('Attention', 'event_espresso') . "<br />";
$error .= __('We\'re sorry. Either an error occurred or the event(s) you were attempting to register for may no longer be open for registration.', 'event_espresso');
$error .= "</p></div>";
return empty( $events_in_session ) ? $error : '';

Yields no colored text, no background, no highlight of any kind. It just looks like text in the pages existing style. Please help.

Thanks.
Glen


Lorenzo Orlando Caum

  • Support Staff

February 25, 2014 at 4:43 pm

Hi Glen,

Are you seeing any errors when viewing that page with a tool like firebug or chrome developer tools.

Could you link to the page so I can see the issue?


Lorenzo


Glen Roethel

February 25, 2014 at 4:47 pm

Hi Lorenzo,

Thanks! Yes, I think there is an error:
event.returnValue is deprecated. Please use the standard event.preventDefault() instead.

Here’s the page:
http://new4.summersongs.com/the-camps/east-coast-camps-2014/

Please let me know what you think.

Thanks again!
Glen


Lorenzo Orlando Caum

  • Support Staff

February 25, 2014 at 5:09 pm

The following CSS class is associated with that div content:

event_espresso_errorgr

However, there is no CSS linked to the above class. Did you have some existing styling that you wanted to use?


Lorenzo


Glen Roethel

February 25, 2014 at 5:17 pm

That was a vestige from my attempts to make the EE styling work (event_espresso_error). I’d duplicated that, then tried to edit it. I’m a bit of a hacker at this, so I forgot to switch it back. I cleared that up, and you can see that it doesn’t change.

I would like to add a color behind it – or maybe a box – and color the text differently from the page body text. I couldn’t make any of these things happen, ‘tho they seemed to be set up in the espresso_default.css file (which I have copied to my uploads/espresso/templates/css folder, by the way).

Thanks again for your help!


Lorenzo Orlando Caum

  • Support Staff

February 25, 2014 at 8:26 pm

The default styling is being used on your site. That may explain why the styles were not appearing even though some were moved.

Could you setup a custom themeroller theme in your wp-content/uploads/espresso folder so that all of your customizations are in one location:

https://eventespresso.com/wiki/how-to-create-custom-themeroller-styles/

Then you can add your CSS edits for Event Espresso to this location:

wp-content/uploads/espresso/themeroller/my-custom-theme/style.css


Lorenzo

The support post ‘ESPRESSO_CART_LINK "Attention" error message is not styled’ 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.

Event Espresso