Support

Home Forums Event Espresso Premium Possible to add a special icon to some "Promotional" events?

Possible to add a special icon to some "Promotional" events?

Posted: August 13, 2018 at 1:52 pm


pickwicksplum

August 13, 2018 at 1:52 pm

We want to be able to add an icon to events we’re running specials on, so for example if you chose the event category “Sewing”, on that list of classes, we’d have a red dot or something next to the result for a specific event that is on sale… We need some way to distinguish these special events…

Thank you!
S


Tony

  • Support Staff

August 13, 2018 at 3:15 pm

Hi there,

If I understand correctly, you should be able to do this using a filter in EE, but may I ask which specific event list you are referring to above?

Maybe add a screenshot that highlights what you want to add and where:

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


pickwicksplum

August 14, 2018 at 2:43 pm

We’re redesigning our site, so I can show you our hearts desire at least for the Category landing page: http://prntscr.com/kingun

Thank you!


Tony

  • Support Staff

August 15, 2018 at 3:54 am

Ok, so if you are asking how you can add something to the event itself so you know if your template should display the above, you can use post meta and just add a custom field to the ‘promotion’ events, like so – http://take.ms/3qfkAZ

That adds a custom field ‘promotional_event’ to the post meta, so then in your template you’d do something like:

$promotional_event = $event->get_post_meta('promotional_event', true);

if( $promotional_event ) {
 // Output whatever you prefer for promotional events, in this case a red dot.
}

If you are looking for a more specific example I’d likely need to see your theme to give an idea of what you need to do.


pickwicksplum

August 15, 2018 at 10:00 am

Brilliant!!! I just neeeded to know if it could be done. Thanks so much Tony!

We’ve not built the theme yet… we’re still in the design process.

Thanks much!
Shelly


Tony

  • Support Staff

August 15, 2018 at 10:04 am

You’re most welcome, Shelly.

Any further questions just let us know.

The support post ‘Possible to add a special icon to some "Promotional" 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