Home › Forums › Calendar Products › Filter Bar › Search Bar/Filters Bar
- This topic has 3 replies, 2 voices, and was last updated 9 years, 7 months ago by Casey.
-
AuthorPosts
-
July 16, 2014 at 9:35 am #412889TranParticipant
Where can I access the code for the search bar for the events calendar? The one that has: Events In (Date) | Search (Search) and Near(Location). I’d like to change some of the placeholder text, and also for the Near specifically, Id like to add an autocomplete jquery list to the text input.. in which folder and which file can i make these modifications?
script for autocomplete (near, location input)
<script>
$(function() {
var availableTags = [
“ActionScript”,
“AppleScript”,
“Asp”,
“BASIC”,
“C”,
“C++”,
“Clojure”,
“COBOL”,
“ColdFusion”,
“Erlang”,
“Fortran”,
“Groovy”,
“Haskell”,
“Java”,
“JavaScript”,
“Lisp”,
“Perl”,
“PHP”,
“Python”,
“Ruby”,
“Scala”,
“Scheme”
];
$( “#whatevertagthenearlocationsinputhas” ).autocomplete({
source: availableTags
});
});
</script>thanks
July 17, 2014 at 2:47 pm #432584CaseyParticipantTran,
Thanks for getting in touch! The code for the Search bar (or ‘Tribe’ bar as we often call it), is located in ‘plugins/the-events-calendar/views/modules/bar.php.’If you’re looking to add some custom javascript, you should be able to just put that in a separate js file and add it to your theme’s header.php file using a SCRIPT tag.
Does that help to answer your question? Just let me know if you need further help here. Thanks! 🙂
-Casey-
August 14, 2014 at 9:02 am #666813CaseyParticipantI just wanted to follow up and see if you’re all set here or if you still have further questions. Just let me know if you have further questions or if I should go ahead and close out this thread. Thanks! 🙂
-Casey-
August 28, 2014 at 6:43 am #706370CaseyParticipantSince I haven’t heard back from you here, I’m going to go ahead and close out this thread. Feel free to start a new thread if you have further issues. Thanks! 🙂
-Casey-
-
AuthorPosts
- The topic ‘Search Bar/Filters Bar’ is closed to new replies.