Home › Forums › Calendar Products › Filter Bar › Basic customisation
- This topic has 12 replies, 3 voices, and was last updated 10 years, 2 months ago by
Support Droid.
-
AuthorPosts
-
October 20, 2015 at 8:56 am #1016260
Keith
ParticipantHi,
Could you give me a pointer to which CSS I need to modify to make basic changes to the font, size, and background for the Filter Bar? Also, if I wanted to change the design of the arrow from a horizontal one to a vertical one, how would I go about that?
Finally, if I want to remove the default search bar, i.e. the one that contains DATE, SEARCH and NEAR, and move the View drop-down into the Filter Bar, how would I go about that? Would there be any donwside to this, other than the obvious removal of functionalit?
Thanks,
October 20, 2015 at 10:27 am #1016295George
ParticipantHey @Keith!
Could you give me a pointer to which CSS I need to modify to make basic changes to the font, size, and background for the Filter Bar?
Font and size styles are usually dictated by your themeΒ β in terms of background, that should be customizable with code like this:
#tribe_events_filters_wrapper.tribe-events-filters-horizontal,
.tribe-filters-closed #tribe_events_filters_wrapper.tribe-events-filters-horizontal {
background: red !important;
}
To find out specific font styles on elements in your page, and see if the theme is setting them or not, I’d recommend getting and using a [free!] tool like Firebug if you use FireFox, or the Developer Tools for either Safari or Chrome. They have “Inspector” tools that let you zoom right over the element you’d like to customize.
In fact, you should use this tool for any other CSS-related questions, like your next one which was this:
Also, if I wanted to change the design of the arrow from a horizontal one to a vertical one, how would I go about that?
For example, using the tools I recommended above you’d find that you can change the contents of that arrow by using the following selector:
#tribe_events_filters_wrapper tribe_events_filter_item h3 span::after,
#tribe_events_filters_wrapper .tribe_events_filter_item.closed h3 span::after {
background-color: red !important;
}
Finally, if I want to remove the default search bar, i.e. the one that contains DATE, SEARCH and NEAR, and move the View drop-down into the Filter Bar, how would I go about that? Would there be any donwside to this, other than the obvious removal of functionalit? [sic]
There is no downside to this other than, as you mentioned, the loss of the functionality they provide. You can hide the filters like this:
#tribe-events-bar .tribe-bar-filters {
display: none !important;
}To move the remaining “Views” item down into the filter bar, however, is a bit more complicated. There are numerous ways to go about doing this, ranging from pure-CSS methods to customizing PHP templates outright using the methods described here β https://theeventscalendar.com/knowledgebase/themers-guide/
I hope this all helps!
Cheers,
GeorgeOctober 20, 2015 at 12:53 pm #1016365Keith
ParticipantHi George,
Thanks for that. I had spent some time with the Chrome Inspector, but I’m never 100% sure that I’m targeting what I want, and only what I want, so I thought I’d check to see if there were any documentation.
I’ve tried the examples you gave. The one for changing the arrow was spot on, but the one for removing the search bar hasn’t had any effect.
Regards,
KeithOctober 21, 2015 at 11:43 am #1016662George
ParticipantAh, I’m sorry to hear that search-bar hiding CSS didn’t help, Keith. Try this instead of my original code:
#tribe-bar-form #tribe-bar-views + .tribe-bar-filters {
display: none !important;
}
October 25, 2015 at 10:58 am #1017705Keith
ParticipantHi George,
This still doesn’t seem to be working as expected. I don’t know if I’m missing something. This is how it looks on twentyfifteen.
Thanks,
KeithOctober 26, 2015 at 2:36 pm #1018694George
ParticipantThanks for the screenshot of how things are, Keith. Just to be 100% clear, what is the specific thing in that screenshot which shows, but that you want to hide?
Perhaps I’ve been misunderstanding your question in which case I’m really sorry! I’ll give it another try though; thank you for your patience π
October 26, 2015 at 4:50 pm #1018721Keith
ParticipantHi Brian,
Thanks for this. I’m sure it’s beyond the call of duty! This shot shows what I’m trying to achieve. I want to eliminate the search box altogether. It looks strange but my idea is to see if I can combine the View As drop-down and the Filter Bar into a single element. This would be the first step.
Regards,
KeithOctober 27, 2015 at 11:06 am #1018986George
ParticipantThank you for clarifying that β I’m really sorry to keep dragging this on, but can you link me directly to the page on your site where I can see this in person? The CSS I originally recommended achieves this effect for me on my test site; but perhaps there are some additional rules I need to address with my CSS specific to your theme or in relation to CSS from other plugins, et cetera.
Thanks a ton for your patience!
β George
October 31, 2015 at 11:21 am #1020522Keith
ParticipantNovember 2, 2015 at 5:04 pm #1021049George
ParticipantHey Keith,
Thanks for that; it looks like the bars are indeed hidden, but the bar’s background color just needs to be set to transparent. Try this CSS to achieve that:
#tribe-bar-form {
background: transparent !important;
}
I hope that helps!
Cheers,
GeorgeNovember 5, 2015 at 3:11 am #1022067Keith
ParticipantThat’s fixed, George. Thanks a lot for your help.
November 5, 2015 at 8:58 am #1022219George
ParticipantThanks for your patience! π
Cheers,
GeorgeFebruary 18, 2016 at 8:30 am #1075406Support Droid
KeymasterThis 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. -
AuthorPosts
- The topic ‘Basic customisation’ is closed to new replies.
