Removing "Use New Venue" in Dropdown

Home Forums Calendar Products Community Events Removing "Use New Venue" in Dropdown

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #163125
    astcit
    Participant

    Hey Again!
    Was wondering whats the best way to remove the option of “Use New Venue” from the drop down selection for venues?
    Ive looked through https://theeventscalendar.com/support/forums/topic/removing-saved-venue-and-saved-organizer-dropdowns/ and https://theeventscalendar.com/support/forums/topic/removing-saved-venue-organizer-from-community/ but the only seem to completely remove the fields within the “submit an event” form,
    i just want it to make the default selection the first venue in the list. is this possible?

    #163128
    astcit
    Participant

    i also want to be able to remove the Show Google Maps Link check box.
    but every time i seem to edit it out of the venue.php file, it doesnt seem to remove it.
    [[<input type=”checkbox” id=”EventShowMap” name=”EventShowMap” value=”1″ <?php checked( tribe_embed_google_map( $event ) ); ?> />]]

    #164473
    Casey
    Participant

    astcit,
    Thanks for getting in touch! Unfortunately, there’s no easy way to remove that option without having other issues crop up. There is JavaScript in the plugin that controls showing/hiding the Venue fields that would break if you were to remove the ‘Use New Venue’ option.

    If this is something you’d like to see in a future release, I would suggest submitting it as an idea on our UserVoice page. Our team periodically reviews the most popular ideas for possible inclusion in a future release of the plugin.

    Regarding your second question:

    i also want to be able to remove the Show Google Maps Link check box.
    but every time i seem to edit it out of the venue.php file, it doesnt seem to remove it.
    [[<input type=”checkbox” id=”EventShowMap” name=”EventShowMap” value=”1″ <?php checked( tribe_embed_google_map( $event ) ); ?> />]]

    Firstly, you’ll definitely want to make sure you’re not editing any template files directly, as your changes will be overwritten when you update the plugin. The best way to make modifications to the template files is via a template override. Take a look at our themer’s guide to learn more about how to do this.

    With that being said, you should actually be able to hide the ‘Show Google maps’ checkbox without editing the template files at all. All you’ll need to do is paste the following snippet into your theme’s functions.php file and it should add the CSS to hide the checkbox for you: https://gist.github.com/ckpicker/edc8ae08827fd235ace1

    Give that a try and let me know if it does the trick. Thanks! 🙂

    -Casey-

    #166811
    astcit
    Participant

    Thanks so much Casey!
    You guys have got some really good support.

    and yep, all edits are being done in the child them as needed.
    the Google maps check box has now been removed! Thanks again!

    ….is it possible to change the order maybe of the venues drop down list?

    #166819
    astcit
    Participant

    Ive found that there is a place to change the “Default venue for submitted bookings” under the settings > community > Default venue for submitted bookings. But it doesnt seem to take…

    #167382
    Casey
    Participant

    Glad to hear that my answer did the trick for you! Regarding your other question:

    Ive found that there is a place to change the “Default venue for submitted bookings” under the settings > community > Default venue for submitted bookings. But it doesnt seem to take…

    We’re definitely aware of this issue, and have it slated to be fixed in the next release, so stay tuned!

    Since it looks like you’re all set, I’m going to mark this thread “Answered” and close it out.

    By the way, if you have a minute or two, we would love it if you’d write a few words for us here: http://m.tri.be/jw

    Thanks in advance. 🙂

    Cheers,
    Casey

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Removing "Use New Venue" in Dropdown’ is closed to new replies.