Home › Forums › Calendar Products › Events Calendar PRO › Feature Image for Week View Page
- This topic has 4 replies, 3 voices, and was last updated 11 years ago by
Support Droid.
-
AuthorPosts
-
September 27, 2015 at 10:30 am #1009046
Kurtis
ParticipantIs there a way to have one featured image on the “week view” page. If I want to share the events of the week ahead on a Facebook page or other site it shows no image at all.
September 28, 2015 at 9:50 am #1009279Brook
ParticipantHowdy Kurtis,
That would certainly be possible with a theme override. The Themer’s Guide walks you through how to make overrides like that.
If I were you I would override events-calendar-pro/src/views/pro/week.php and add your image in there. You could add a simple
tag and link to a static image. Or if you wanted to be able to adjust the image from the backend, you could create a new page called something like “Week view’s featured image”. Add a featured image to it and hit save. Grab the page ID # from the URL. Then user tribe_event_featured_image( $page_id ) to show the featured image for that page. Thus any time you want to change the image, just go to Week view’s featured image and update teh featured image from the WP backend.
Does that all make sense? Will that work for you? Please let us know.
Cheers!
– Brook
September 28, 2015 at 10:38 pm #1009523Kurtis
ParticipantI am using the Default Events Template. I created a folder in my theme (twentythirteen) and copied default-template.php into it. There is not much to that file. Do I need to use the “conditional wrappers”?
September 30, 2015 at 12:17 pm #1010192Brook
ParticipantHowdy Kurtis,
My apologies, I must not have been very clear. You do not need to override the default-template.php file. That explains why you are not seeing what you are looking for. You want to override this file:
events-calendar-pro/src/views/pro/week.phpAnd then from there, use the function tribe_event_featured_image() as outline above. You likely want to insert that image either directly above or underneath the ‘modules/bar’ line.
Does that make more sense now? Cheers!
– Brook
October 15, 2015 at 7:05 am #1014888Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Feature Image for Week View Page’ is closed to new replies.
