Forums › Forums › Search & Filter Pro › Horizontal layout
Tagged: horizontal search
- This topic has 13 replies, 6 voices, and was last updated 9 years ago by Anonymous.
-
Ross Moderator(Private) September 29, 2014 at 11:08 pm #5245
Hey Matthias
I’m just working on some updates right now, I’ll come back on to this tomorrow – it should be pretty straight forward to make it horizontal as long as you are happy adding some CSS to your theme.
Thanks
RossRoss Moderator(Private) October 14, 2014 at 4:15 pm #5937Hey Matt
I’m away atm moment – sorry I left this so long – its not so hard so I’ll be able to help quickly on my return ๐
Thanks
RossRoss Moderator(Private) October 19, 2014 at 2:41 pm #6143Hey Matt
Ok, so to make it horizontal all you need to do is add the following css to your theme:
.searchandfilter > ul { margin:0; padding:0; } .searchandfilter > ul > li { display:inline-block; padding-right:10px; }
This means everything display in a single row – like text would.
So you need to make sure that the container that Search & Filter is inside of is wide enough and then this should work ๐
If you don’t see these rules working, then try adding important rules like this:
.searchandfilter > ul { margin:0 !important; padding:0 !important; } .searchandfilter > ul > li { display:inline-block !important; padding-right:10px !important; }
Thanks
Anonymous(Private) December 23, 2014 at 10:23 pm #9496Figured it out with firebug, my ul was “.sf-field-tag” instead of “.searchandfilter” (copy of the changes below). I don’t actually understand why its different but it works.
.sf-field-tag > ul
{
margin:0 !important;
padding:0 !important;
}
.sf-field-tag > ul > li
{
display:inline-block !important;
padding-right:10px !important;
}Anonymous(Private) September 14, 2015 at 7:08 am #24787Hi Ross,
I need to know if there is any form to put a custom class for every search box, for example: I have a vertical form for my sidebar and an horizontal form for a top sidebar, they have different styles one is black and the other is white. Can you put de form id number in the form class to easily customize this search forms? -
AuthorPosts