Home › Forums › Calendar Products › Filter Bar › Modifying Filter Checkboxes / Radiobuttons
- This topic has 8 replies, 2 voices, and was last updated 6 years, 2 months ago by bizzallmedia.
-
AuthorPosts
-
December 27, 2017 at 6:49 pm #1413682bizzallmediaParticipant
Hi,
Hope you all had an amazing xmas!
Last week bought a bundle and found out the event aggregator is not working as it should and as no one knows how long its gonna take to get it fixed by the dev department decided to start to play around a bit with some other stuff while waiting for an update on the fix.Would like to modify the way the radio buttons and checkboxes function in the filter, in particular for the category filter.
I am aware that you are limited by your support policy but hope you can head me in the right direction as I have been trying to get my head around this now for hours now and can’t seem to get it to work, and belief it really shouldn’t be that complicated.Working on a clean install with only Event Calendar Bundle installed, no themes & other plugins, so there’s also no conflicts from other parts.
Through the forum managed to find a snippet to only view the category filter open without anything else as seen on some other sites. And created the filter-view.css in the child theme for twenty….. so was thinking it was a simple matter of modifying the relevant css classes in there but it doesn’t seem to work, not sure if I have the wrong classes or wrong syntax, but can’t get it to work like any of the examples I would like to be able use…..
So would like to change it to something like any of the following:
https://codepen.io/jmar/pen/jWWKbb
https://codepen.io/paul66/pen/jKBzu
or maybe even this… https://codepen.io/raubaca/pen/ONzBxPAny suggestions on how to implement this?
ThanksDecember 27, 2017 at 9:58 pm #1413729BrendanKeymasterHi there,
Have you taken a look at our themer’s guide? We do not support custom development but this may be helpful.
Let me know if that works.
Thanks,
BrendanDecember 28, 2017 at 2:16 am #1413752bizzallmediaParticipantHey,
Yes looked into that.
Note I am somewhat of newbie at this stuff but am up for a challange 🙂From what I have found from the guide and this forum support posts it’s a bit confusing as to why the php files for customising the Filter Bar need to go to mytheme/tribe-events/filter-bar (with the “-“) and the css file for customising needs to go to mytheme/tribe-events/filterbar.(without the “-“)
Am assuming that this is the way it has been standardised just don’t see the point to have to folders in my child-theme to modify the same thing.Also from all this, still have not been able to figure out how to modify it…
Tried this for example andit did nothing….
`
#tribe_events_filters_wrapper label input[type=checkbox],
#tribe_events_filters_wrapper label input[type=radio] {
display: none;
}#tribe_events_filters_wrapper input:checked + label,
#tribe_events_filters_wrapper input:checked + label:active {
background-color: salmon;
}#tribe_events_filters_wrapper label:hover {
background-color: gold;
cursor: pointer;
}`December 29, 2017 at 8:23 pm #1414945BrendanKeymasterHi there,
Can you try adding !important to your css and add this css in the style.css file of your theme?
#tribe_events_filters_wrapper label input[type=checkbox], #tribe_events_filters_wrapper label input[type=radio] { display: none !important; } #tribe_events_filters_wrapper input:checked + label, #tribe_events_filters_wrapper input:checked + label:active { background-color: salmon !important; } #tribe_events_filters_wrapper label:hover { background-color: gold !important; cursor: pointer !important; }`
Let me know how that goes. If you could provide the domain as well, that would be great.
Thanks,
BrendanJanuary 1, 2018 at 11:02 am #1415640bizzallmediaParticipantHi!
Happy New Year!Tried both adding it to the style.css (as your suggested) and to the filter-view.css (as suggested by the theming guide)
None of them did anything to the styling.
January 3, 2018 at 2:50 pm #1417458bizzallmediaParticipantAnd sadly can’t provide the domain as I am working on a local mamp dev setup
January 9, 2018 at 2:22 pm #1421862BrendanKeymasterHi there,
Maybe I am a little confused. So you are trying to change the background color of the label?
Based on what you are say, here is what I think. Try this out and let me know if we are on the same page:
#tribe_events_filters_wrapper .tribe-events-filter-group label:hover
Thanks,
BrendanJanuary 31, 2018 at 8:35 am #1440710Support DroidKeymasterHey 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 ‘Modifying Filter Checkboxes / Radiobuttons’ is closed to new replies.