Support

Home Forums Event Espresso Premium Featured Image Option not available in EE4

Featured Image Option not available in EE4

Posted: February 1, 2018 at 10:30 am


ljgreen123

February 1, 2018 at 10:30 am

I am using 4.9.56.p on the latest version of WordPress. The event set-up page does not contain the option for a featured image. The featured image option is available outside of EE4, but not as an option on the event set-up page.


Tony

  • Support Staff

February 1, 2018 at 10:49 am

Hi there,

The feature image feature is enabled by your theme and if its available for posts but not all custom post type posts (Like EE events) that usually means the theme is enabling the feature for specific post types.

What theme are you using? Is there somewhere I can download a copy to take a look?


ljgreen123

February 1, 2018 at 10:57 am

Thank you for the quick response. I am using the psychology theme from http://rayoflightthemes.com/


Tony

  • Support Staff

February 1, 2018 at 11:00 am

Ok, can you send a copy of the theme to support[at]eventespresso.com?

You’ll likely need to host the zip file somewhere and send a link we can use to download it to the above rather than the file itself.


ljgreen123

February 1, 2018 at 1:08 pm

Just emailed it. I can also set up admin access to the website so you can access it that way as well.


Tony

  • Support Staff

February 1, 2018 at 1:14 pm

I just checked and I can’t see any email from you.

If you included the .zip file within the email it will likely be rejected due to file size, so you’ll need to host the file somewhere (Dropbox or wetransfer for example) and email (or post here) a link we can use to download it.

We don’t need access to the site as it’s the theme’s code I need to view, doing that throughout the WP Editor is no good as the code could be anywhere within the theme.


ljgreen123

February 1, 2018 at 1:22 pm

Sent Dropbox link


Tony

  • Support Staff

February 1, 2018 at 1:57 pm

I’ve replied to you via email concerning the dropbox link.


Tony

  • Support Staff

February 1, 2018 at 2:45 pm

Ok, so within the theme they are doing this:

add_theme_support( 'post-thumbnails', array( 'post', 'page', 'homeblog', 'team', 'rt_gallery' ) );

Which means the theme adds support for feature images for only the post types it has passed into the above function.

I’d recommend creating a child theme:

https://www.smashingmagazine.com/2016/01/create-customize-wordpress-child-theme/

Then adding this snippet to your child themes functions.php file:

add_theme_support( 'post-thumbnails', array( 'post', 'page', 'homeblog', 'team', 'rt_gallery', 'espresso_events', 'espresso_venues' ) );

Which tells the theme to also enable the featured images for EE events and Venues.


ljgreen123

February 1, 2018 at 3:59 pm

OK, thank you. I comes with a child theme so that should make it simpler.


Tony

  • Support Staff

February 1, 2018 at 4:13 pm

Just to note, you can actually just use:

add_theme_support( 'post-thumbnails');

To add support for all post types but I’m assuming your theme only applies them to some posts for a specific reason.

You must be logged in to reply to this support post. Sign In or Register for an Account

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: publish

Updated by  Tony 2 weeks, 2 days ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!