Feature Image for Week View Page

Home Forums Calendar Products Events Calendar PRO Feature Image for Week View Page

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1009046
    Kurtis
    Participant

    Is 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.

    #1009279
    Brook
    Participant

    Howdy 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

    #1009523
    Kurtis
    Participant

    I 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”?

    #1010192
    Brook
    Participant

    Howdy 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.php

    And 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

    #1014888
    Support Droid
    Keymaster

    This 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.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Feature Image for Week View Page’ is closed to new replies.