Instead of FIND OUT MORE display more meta

Home Forums Calendar Products Events Calendar PRO Instead of FIND OUT MORE display more meta

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #997816
    Mad Dog
    Participant

    My 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 Dog

    #997881
    George
    Participant

    Hey 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 🙂

    #997989
    Mad Dog
    Participant
    #998062
    Mad Dog
    Participant

    BTW…..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.

    #998108
    Mad Dog
    Participant

    sorry 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!

    #998479
    Mad Dog
    Participant

    Since 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

    #998641
    George
    Participant

    Hey 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

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Instead of FIND OUT MORE display more meta’ is closed to new replies.