how to ADD filter bar to single event?

Home Forums Calendar Products Events Calendar PRO how to ADD filter bar to single event?

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #998266
    Corrado
    Participant

    i wish to know how to add filter bar to single event

    #998456
    Brian
    Member

    Hi,

    Thanks for using our plugins I can help out here.

    First to edit any event templates you want to follow our themer’s guide:

    https://theeventscalendar.com/knowledgebase/themers-guide/

    That will show you how to move the event templates to your child theme to edit and not lose the changes on updates.

    The template you want to move and edit is found here:

    the-events-calendar\src\views\single-event.php

    And once it is in your theme you want to add this in the spot you want the Tribe Search Bar to display:

    <!-- Tribe Bar -->
    <?php tribe_get_template_part( 'modules/bar' ); ?>

    Let me know if you have any follow up questions.

    Thanks

    #998534
    Corrado
    Participant

    Hi there, I did as you said, I can see the bar in single event page but is not working at all.

    #998826
    Brian
    Member

    Hi,

    The scripts by default do not load on the single event page for the Tribe Bar so it has to be manually added.

    Try adding this script to your child theme’s functions.php:

    https://gist.github.com/jesseeproductions/00ca9a8f4c5153e85fdc

    Adding that script work for me to get the Tribe Bar working on Single Events.

    Cheers

    #998877
    Corrado
    Participant

    I did, it show, but it works really badly…. always said nothing found.
    Is not ‘really works’ because the page is single event.

    #998923
    Brian
    Member

    Unfortunately, that is all I have for this as it is not a feature to have the tribe bar on single templates.

    However, I ran some more tests on my site and on a single event I was able to search by a date and it would take me to the list view and show events.

    I also did a keyword search and changed views and it worked for me too.

    The location search seemed to have problems, but that maybe the because the tribe bar is not designed for the single template.

    You might be able to hide the Location search with some css on the single templates and it might make this more usable.

    #1003233
    Support Droid
    Keymaster

    This 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.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘how to ADD filter bar to single event?’ is closed to new replies.