adding filter to tribe events bar

Home Forums Welcome! Pre-Sales Questions adding filter to tribe events bar

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1135901
    Isabelle
    Guest

    Hi,

    I tried to get into the filter bar forum, but I am actually fixing a site that someone else created using the calendar. Unfortunately, my client wasn’t given the Pro login credentials by the developer. I need to add an input element filter (named City/State) between “Events from” and “Search” input fields. I have read the guide Understanding the Tribe Events Bar and I have two problems.

    1) I cannot find where the functions.php file is located
    2) With the script example you give below do I change ‘name’ and caption to ‘City/State’ ?

    add_filter( ‘tribe-events-bar-filters’, ‘setup_my_field_in_bar’, 1, 1 );

    function setup_my_field_in_bar( $filters ) {
    $filters[‘tribe-bar-my-field’] = array(
    ‘name’ => ‘tribe-bar-my-field’,
    ‘caption’ => ‘My Field’,
    ‘html’ => ‘<input type=”text” name=”tribe-bar-my-field” id=”tribe-bar-my-field”>’
    );

    return $filters;
    }

    The site address is http://frenchheritagesociety.org/events/
    Thanks

    #1136148
    Josh
    Participant

    Hey Isabelle,

    Thanks for reaching out to us! I’m sorry to hear about the access issues for the forums. If you would like, you can reach out via our contact form to try and regain access to the account on behalf of your client.

    I am limited in the amount of support I can provide here in the pre-sales forum, but I would like to help get you pointed in the right direction here.

    1. The “functions.php” file would actually be found in whatever theme you currently have installed and activated for your site. The theme will get loaded after the plugins so you can override functionality there.
    2. The “name” option there would actually need to be a friendlier format such as “city-state” while the caption would be the visible (human friendly) “City/State” version.

    Another option here that may be helpful based on the request would be to check out our Events Calendar Pro and the Map feature there.

    Let me know if this helps.

    Thanks!

    #1142480
    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 3 posts - 1 through 3 (of 3 total)
  • The topic ‘adding filter to tribe events bar’ is closed to new replies.