Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Set default featured image for category | Event Espresso - Staging Server

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

Viewing 1 reply thread


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

  • Support Staff

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 – http://staging.eventespresso.com/developers/event-espresso-pros/

Viewing 1 reply thread

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 - Staging Server