Support

Home Forums Event Espresso Premium Set default featured image for category

Set default featured image for category

Posted: April 15, 2014 at 8:01 am


beccarebs

April 15, 2014 at 8:01 am

Is it possible to set a default featured image for specific event categories? That way, if a user does not upload a featured image, the event automatically uses the default image. If so, where would I put the code for this functionality?


Dean

April 17, 2014 at 3:54 am

Hi,

Well from the sounds of things you would need to edit the template files:

Event list
event_list.php
event_list_display.php

Single event
registration_page.php
registration_page_display.php

if you use Multiple Event Registration
multi_registration_page.php
multi_registration_page_display.php

If you edit them they should be copied over to wp-content/uploads/espresso/templates, and they need to go in pairs event if you only edit one.

Then you will need to modify them to check if there is a featured image and what the category is and then insert the appropriate image based on the results.

If you need assistance with the PHP code required, you could contact a developer. We have a list of recommended developers here – https://eventespresso.com/developers/event-espresso-pros/

The support post ‘Set default featured image for category’ 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