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?
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.
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.
Support forum for Event Espresso 3 and Event Espresso 4.