Home › Forums › Calendar Products › Filter Bar › Horizontal Layout + Default State Open
- This topic has 3 replies, 4 voices, and was last updated 9 years, 6 months ago by
Carly.
-
AuthorPosts
-
September 29, 2016 at 12:22 am #1170240
Carly
ParticipantHi Nico,
I found this post: https://theeventscalendar.com/support/forums/topic/horizontal-layout-default-state-open-does-not-work/ and would love your help to get this working.
I’m trying to configure it so it has the option insitu but need to have them open as default rather than a click to open. Would hugely appreciate some help!
Also, is there a way that I can put this filter bar on the homepage, but when they click search it actually shows the results on the normal events page?
Regards,
CarlySeptember 30, 2016 at 8:47 am #1171023Brook
ParticipantHowdy Carly,
I would love to help you with this.
I just wrote a quick extension that does this. If you download and install this like a regular plugin, then activate it, you will notice the filters are open by default when you load the page:
The Events Calendar Extension: Open Horizontal Filterbar
You might be interested in adding something like this to your CSS as well:
.tribe_events_filter_item { min-width: 155px; }Because with all of the filters open together, you might notice them overlapping a bit. This will add some space between them.
Also, is there a way that I can put this filter bar on the homepage, but when they click search it actually shows the results on the normal events page?
Yes, because there is always a way! But if the question was: how hard would it be to do this? Then my answer would be “very hard”. Basically you or your developer will need to rewrite how the Filter Bar works, by making it submit things to a different page than the current one. That actually will be pretty easy since the filters submit as URL $_GET variables. The difficult part will be writing the JavaScript you need to make the filters work on a different page. The JavaScript all expects the Filter Bar to be loaded on the same page, so you would need to write your own versions of these scripts and load those instead. If you have a PHP developer on hire, then I would budget a minimum of 2-3 hours to get this working right. It could easily take a significant chunk more.
Does that all make sense? Will that work for you? Please let me know.
Cheers!
– Brook
October 22, 2016 at 9:35 am #1181276Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Horizontal Layout + Default State Open’ is closed to new replies.
