Custom HTML and featured image in Photo View

Home Forums Calendar Products Events Calendar PRO Custom HTML and featured image in Photo View

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1267363
    Birgit
    Participant

    Hi there @tribe,

    The Events Calendar offers custom HTML that appears before and after the events loop, but I wonder which template file is the one to insert custom HTML that appears just in the photo list view (before the event loop), not on the singe events or venue page.
    And is there any hook to add a featured image for the header section which is displayed in the theme template on the photo view page? As the slug /events is not a physical page, I can’t asign a featured image the classical way.

    Any help is appreciated 🙂
    Thanks, Markus

    #1268578
    Victor
    Member

    Hi Markus!

    Thanks for reaching out to us! 🙂 Let me try to help you with that.

    I wonder which template file is the one to insert custom HTML that appears just in the photo list view (before the event loop), not on the singe events or venue page.

    You should look for the content.php template file in /wp-content/plugins/events-calendar-pro/src/views/pro/photo/content.php Inside it you will find the action hook tribe_events_before_loop you could use to add html content

    is there any hook to add a featured image for the header section which is displayed in the theme template on the photo view page?

    For this, you should also check the above template file and also the photo.php template file located in /wp-content/plugins/events-calendar-pro/src/views/pro/photo.php

    There is a great article on how to customize template files in our Themer’s guide here > https://theeventscalendar.com/knowledgebase/themers-guide/

    I hope that helps and let me know if any other questions.

    Best!
    Victor

     

    #1269084
    Birgit
    Participant

    Thanks so far, but the header section is not part of the loop, so I have to address it somewhere else. As I said, this is not a regular with a specific ID, so I can not apply a featured image to the section where the slug “Events” appears. I just want to ad a header image for the page that goes with the theme template.
    Thanks, Markus

    #1269088
    Birgit
    Participant

    To illustrate what I mean: this is the section I want to adress 😉

    #1269280
    Victor
    Member

    Hi Birgit!

    Thanks for clearing that out!

    If you selected “Default Event Template” in Events -> Settings -> Template -> Events Template, then you should check the default-template.php file located in /wp-content/plugins/the-events-calendar/src/views/default-template.php

    Instead, if you selected “Default Page Template”, then you should customize your theme’s page.php template file.

    Good luck!
    Victor

    #1278668
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Custom HTML and featured image in Photo View’ is closed to new replies.