Home › Forums › Calendar Products › Events Calendar PRO › Instead of FIND OUT MORE display more meta
- This topic has 6 replies, 2 voices, and was last updated 10 years, 8 months ago by
George.
-
AuthorPosts
-
August 20, 2015 at 9:57 pm #997816
Mad Dog
ParticipantMy client doesn’t want a simple list view with the “Find Out More” link, they want to display all (or most of) the information in List View and not link to a detail page. They’re adament.
I’ve been looking at the Themer’s Guide and the files and it’s a pretty confusing template set-up. I’m wondering what would be the best (and simplest?) way to do this. I’m thinking maybe pulling all the display section out of /list/single-event.php/ and replacing it with
<?php the_content(); ?>is the way to go. I guess if I did that I could control what is displayed and in what order from the /modules/meta.php/ and the sub-meta files. Does that make sense or am I going about it all wrong?And if I did that, what CSS stylesheet would I modify?
I have to say…this is possibly the messiest template I’ve ever had to modify…
Is there an easier (or better) way I’m overlooking?
Thanks,
Mad DogAugust 21, 2015 at 6:21 am #997881George
ParticipantHey Barry,
I’m sorry you find our templating system confusing. For this customization, it should actually be fairly simple to do – just make a file in your theme at /tribe-events/list/single-event.php which is an exact duplicate of the file in the plugin code itself at /src/views/list/single-event.php.
Then, where you want the extra information to display, add it. This can be the_content() instead of the_excerpt() – you can add custom get_post_meta() calls and anything else like that. Basically, all the fun WordPress templating stuff that you were presumably hired for your knowledge and experience with 🙂 Play around with the run-of-the-mill WordPress templating functions, and if you have specific Calendar data you want to get, just look through the functions listed in the various template tag files in the plugin’s /src/functions/template-tags directory.
The only “weird” or tricky thing to display is data from the “Additional Fields” content if you have Events Calendar Pro – if you want to display those fields, just add this where you want them to display:
tribe_get_template_part( 'pro/modules/meta/additional-fields', null, array(
'fields' => tribe_get_custom_fields(),
) );
I hope this all helps! Best of luck with your templating 🙂
August 21, 2015 at 10:42 am #997989Mad Dog
ParticipantThanks for the leads…..it starts okay, then with the nested templates gets bolluxed up.
For instance, I have no problem, say, going into single-event.php and removing the from the Title. Easy enough.
Then I want to get rid of the “+ Google Map” link and text. True, I could use CSS and hide it, but I’d rather just get rid of it….at least as an example of what works. So I go to venue.php and comment out, then delete, the offending code, save it in [your-theme]/tribe-events/modules/meta/venue.php as the file says I should, but no matter what I do to that file nothing changes when I look at list view.
Do I have the wrong file somehow? Or is it in the wrong place?
THANKS
August 21, 2015 at 3:03 pm #998062Mad Dog
ParticipantBTW…..that previous post should have said “Removing the
<a>tag”, but since I didn’t make it cide it which turned the whole freakin’ reply into link styling! Sorry about that. And I don’t see that I can edit it.August 21, 2015 at 4:51 pm #998108Mad Dog
Participantsorry to keep this up but I’m doing great with this adding the template tags.
I decided not to worry about eliminating the +Google Map link, at least for now, and just used display:none. Inelegant, but that’s fine.
One hopefully last piece to this that’s related to the Google Map link:
– I want to remove the link from the Venue. I see in the forums I can change tribe_get_venue() but I still have that problem. I have the file at /tribe-events/modules/meta/venues.php but changes there don’t get reflected in the single page. That is the right directory for it, isn’t it?
Thanks!
August 24, 2015 at 10:04 am #998479Mad Dog
ParticipantSince I never heard back and for some reason changing the file wasn’t doing anything, instead of deleting the link tag I did it using CSS.
`body.events-list .tribe-events-venue-details span a {
pointer-events: none !important;
cursor: default !important;
}’I’m still curious why changing that file wasn’t affecting anything, but it’s not critical at this point.
THANKS
August 24, 2015 at 6:01 pm #998641George
ParticipantHey Barry,
Apologies for the delayed response, I’m just returning from the weekend and catching up on threads.
This thread is marked “resolved” and you seem to have worked out a useful solution on your site, so I will mark this as “Closed” for now.
Best of luck with your site!
George -
AuthorPosts
- The topic ‘Instead of FIND OUT MORE display more meta’ is closed to new replies.
