Support

Home Forums Event Espresso Premium css on different events

css on different events

Posted: February 22, 2013 at 9:58 am


Evert van Malkenhorst

February 22, 2013 at 9:58 am

Hi,

I would likt with css to hide f.i etc. on one event and show with another.
I see no id specific to the event f.i a event-specific body class where i can hook in.

Is there a way to achieve this? Because the page-id for all events is the same!

Thanks,
Evert


Josh

  • Support Staff

February 22, 2013 at 1:52 pm

Hi Evert,

Is this for the registration page? If so, the simple way to do this would be to add inline CSS styles right within the event editor (in text/html view). If you wanted to add these in a stylesheet, you might consider adding an event ID to an ID or class name. For example, you could change the ID for the registration form div in registration_page_display.php:

<div id="event_espresso_registration_form-<?php echo $event_id; ?>" class="event-display-boxes">


Evert van Malkenhorst

February 23, 2013 at 10:59 am

Hi Josh,

Great help. It works! But ONLY when i change the core file. When i put the changed code in and put the file in uploads/espresso/templates it doesn’t work.

Please tell me why, i don’t get it.

I don’t want any code overwritten with updates.

Thanks have a lovely weekend.

Evert


Dean

February 25, 2013 at 1:17 am

Hi,

Depending on the file you are trying to change: if you have copied over the event_registration_display.php or the event_list_display.php you need to also copy over the registration_page.php and/or the event_list.php.

Basically they are linked both files need to be copied over even if you are only editing one, otherwise the system wont recognize them in the uploads folder.


Evert van Malkenhorst

February 27, 2013 at 12:01 am

Thanks Dean,
That dit the trick.

The support post ‘css on different events’ 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