Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Custom Settings Box (Checkboxes and buttons…)
- This topic has 6 replies, 2 voices, and was last updated 4 years, 8 months ago by
SoulaimaneAMRI23.
-
AuthorPosts
-
September 21, 2021 at 4:48 am #34844
SoulaimaneAMRI23
ParticipantHello Sir,
I hope you’re doing well.
We’re using Ajax Search Pro with filter settings containing checkboxes. The checkboxes are displayed vertically. We want to have them displayed horizontally in a responsive way that makes these checkboxes display in one to more lines depending on the device (2 lines for example for a desktop, 6 for mobile…).
We have the same request for the buttons (search and reset).
Could you please help in setting this changes ?Many thanks in advance,
Kind Regards
September 21, 2021 at 11:17 am #34865Ernest Marcinko
KeymasterHi,
Sure, I can probably suggest something. Try this custom CSS:
.asp_filter_cf_classification .asp_simplebar-content { display: flex; flex-wrap: wrap; } .asp_filter_cf_classification .asp_simplebar-content legend { flex: 0 0 100%; } .asp_option_label { white-space: nowrap; }It should give you something like this: https://i.imgur.com/YyMNiPz.png
September 21, 2021 at 1:57 pm #34870SoulaimaneAMRI23
ParticipantHello,
Yeah, it works ! Many many thanks for your help. However, we still have a small issue related to this. The version we used in our ticket in which the columns on the settings box is wide was made after modifying the width of each column in the file “asp_uploads/style.instances-is-po-co-ga-is.css”.
And we’ve set the width of the first column (Classification) in 36%, the second (horizon de placement) to 28% and the third (containing the buttons) to 28%I think once there’s an update these changes will be lost (as it’s the case right now in the same link). Is there a way to make them through another method without changing anything in the stated file ?
Many thanks again and again for your support !
Kind Regards
September 21, 2021 at 7:08 pm #34871Ernest Marcinko
KeymasterThose files are dynamically generated, periodically they change, so I do not recommend editing them, as it will not be permanent.
For custmizations, always use custom CSS – use your theme custom CSS field (if it supports it) or use the custom CSS field on the search plugin back-end.
September 21, 2021 at 8:44 pm #34874SoulaimaneAMRI23
ParticipantYes ! That’s what I tried first using the Divi theme options (in Divi) but it doesn’t work ! It was like the CSS classed in that file are not the ones to use to change the width of this settings box’s column. So, still wondering what are the appropriate CSS classes that control those elements.
Kind Regards
September 27, 2021 at 12:15 pm #34878Ernest Marcinko
KeymasterWell, it depends on the custom CSS code, but simply adding classes with properties may not have effect, because CSS specificity also plays a role. To override existing rules, higher specificy CSS code has to be used.
Simply put, if you have only a few rules, use the !important keyword to override the original CSS rules.September 27, 2021 at 2:55 pm #34880SoulaimaneAMRI23
ParticipantYes, done ! Many thanks
Have a nice day
-
AuthorPosts
- The topic ‘Custom Settings Box (Checkboxes and buttons…)’ is closed to new replies.