Home › Forums › Calendar Products › Events Calendar PRO › Custom HTML and featured image in Photo View
- This topic has 6 replies, 2 voices, and was last updated 8 years, 11 months ago by
Birgit.
-
AuthorPosts
-
April 9, 2017 at 2:11 pm #1267363
Birgit
ParticipantHi 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, MarkusApril 11, 2017 at 4:23 pm #1268578Victor
MemberHi 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!
VictorApril 12, 2017 at 12:33 pm #1269084Birgit
ParticipantThanks 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, MarkusApril 12, 2017 at 12:36 pm #1269088Birgit
ParticipantTo illustrate what I mean: this is the section I want to adress 😉
April 12, 2017 at 10:43 pm #1269280Victor
MemberHi 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!
VictorMay 4, 2017 at 9:36 am #1278668Support Droid
KeymasterHey 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 -
AuthorPosts
- The topic ‘Custom HTML and featured image in Photo View’ is closed to new replies.
