Support

Home Forums Event Espresso Premium Different Template

Different Template

Posted: August 26, 2013 at 10:36 am


Marco Genovese

August 26, 2013 at 10:36 am

It’s possible assign a different template for a specific event?
Let me explain: I have 2 events (Registrazione Privati and Registrazione Agenzie) to which I would like to assign a different template other than the events that I’ll create later. This is because I’m using these 2 events to register users to the site. Since these two events are constant (not variables), do not have a start date and end time, there is a way to assign them a different template?
Here’s a screenshot of what I mean: Screenshot


Jonathan Wilson

August 26, 2013 at 1:04 pm

Hi Marco,

It is possible to remove that information with CSS. You can probably remove it on an event by event basis. You’ll need to get the id. This can be done with Chrome web developer tools. If you’ll post the link to your the event that you want to remove the information from, I can help you come of with the CSS needed.


Marco Genovese

August 27, 2013 at 2:13 am

Hi Jonathan,
thanks for the reply.
This is the link where you will find the event which I would like to modify.
Event ID = 1

Thanks in advance


Dean

August 27, 2013 at 5:27 am

Hi,

You can use the following CSS selectors to target that single event:

In the event list

#event_data-1

As a single registration

#espresso-event-id-1

You would need to then narrow the focus, so #event-data-display h3 or #event-data-display .event-meta. It depends on what your are targeting.

Another alternative, at least for the event list, is to use the custom css attribute on the [EVENT_LIST] shortcode:

[EVENT_LIST css_class=”somethinghere”]

Then you can target the whole event list, but only that particular one.


Marco Genovese

August 27, 2013 at 7:38 am

Hi Dean,
I don’t understand where to use the code that you wrote. Please, could you explain me, step by step how to do? I load my events into pages by category.
Here is the shortcode that I have used in the page for call the event “Registrazione Privati”: [EVENT_ESPRESSO_CATEGORY event_category_id=”registrazione-privati-1377507381″]

Thanks in advance


Jonathan Wilson

August 27, 2013 at 9:59 am

Hi Marco,

You’ll need to add the following code to the style.css file of your theme, or a custom CSS plugin:

/** Remove Date from event 1 **/
#event_date-1 {
    display: none;
}

This removes the date information from the event 1. If you need to remove it from other events, you can add their ids to the code like this:

#event_date-1, #event_date-2 {
    display: none;
}


Marco Genovese

August 28, 2013 at 8:55 am

Thank you so much Jonathan


Jonathan Wilson

August 28, 2013 at 9:20 am

You’re welcome, Marco.

Let us know if you have anymore questions.

The support post ‘Different Template’ 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