Home › Forums › Calendar Products › Events Calendar PRO › Removing title and customising photo views
- This topic has 7 replies, 4 voices, and was last updated 9 years, 10 months ago by
Graham.
-
AuthorPosts
-
June 24, 2016 at 9:30 am #1131528
Graham
ParticipantHi
I am wanting to use the Events listing page generated by Events Calendar PRO as my home / landing page. Use it in Photo or List View.
1. How can i removed the page title “Upcoming Events” so that no title shows?
2. I want to customise the photo views so that minimal info appears in the event/photo view.
3. I want to also limit the size and have three photo view columns appearing across the content section of the page.Im not at all profecient in working with CSS etc.
Regards
June 24, 2016 at 12:45 pm #1131715Geoff
MemberHey Graham, welcome to the forums!
That sounds totally doable. While we are a bit limited in how much we can support custom development questions like this, I’d be happy to point you in the right direction if I can. 🙂
First off, this snippet can be placed in your child theme’s functions.php file to remove the “Upcoming Events” title specifically in Photo View:
https://gist.github.com/geoffgraham/5f29b3bf0e7706cf93628dc000261782
To only show the minimal info for an event, you can make customize the template for the Photo View. There’s more on this in our Themer’s Guide, but it basically boils down to this:
- Make a copy of the template. It’s located at /wp-content/plugins/events-calendar-pro/src/views/pro/photo/single-event.php
- Make a new folder in your theme directory called tribe-events
- Make a new folder in that one called pro
- Make a new folder in that one called photo
- Drop the copied single-event.php file in that last folder
Now that the template is in your theme you can modify it to suit your needs. In this case, you can remove any of the details you would like from the template to show only what you need. For example, remove the following line to get rid of the content excerpt:
<?php echo tribe_events_get_the_excerpt() ?>I’m afraid the only thing I’m unable to help with is changing the column widths for Photo View. Those are created dynamically with Javascript and would take a fair amount of custom development.
Will this help you get started? Please let me know. 🙂
Cheers,
GeoffJune 26, 2016 at 1:27 am #1132055Graham
ParticipantThank you Geoff.
I did as you said for removing the title in he photo view. This has done if for the “calendar” page on my site, but the title still shows on the homepage, which i have also set as the Calendar view.
Regards
June 27, 2016 at 8:07 am #1132316Geoff
MemberHi Graham,
Oh sorry — the instructions I gave for removing the title will only have an effect on Photo View.
You can follow the same set of instructions for List View, only replacing the photo-specific actions with list instead.
Cheers,
GeoffJune 27, 2016 at 8:21 am #1132337Graham
Participantthank you. also how to remove it on the homepage? if you look at the site, it still shows the title even after putting that code you gave in. I have made the event calendar pro photo and list view as the landing page / home page for the site.
June 27, 2016 at 9:23 am #1132405Geoff
MemberHi Graham,
Will you please send me a link to the homepage? I haven’t seen a URL in this thread so far, but could just be missing it.
Thanks!
GeoffJuly 12, 2016 at 9:35 am #1138692Support 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 ‘Removing title and customising photo views’ is closed to new replies.
