Forums › Forums › Search & Filter Pro › Customize the layout of search form and search results
Tagged: customize the layout
- This topic has 34 replies, 2 voices, and was last updated 6 years, 6 months ago by Anonymous.
-
Anonymous(Private) May 11, 2018 at 5:39 pm #177122
As you mentioned above, I realize that the key to solving the problem is to force is_search and select the appropriate Ajax Container as this will force the system to always display results on the search results page (not on an archive page), which has the specific sidebar. So we do not have to create a child theme in this case.
Trevor(Private) May 12, 2018 at 7:44 am #177170For the form, the Custom CSS you are looking for would be this:
.searchandfilter ul li.sf-field-reset { display: inline-block; margin-right: 50px; } .searchandfilter ul li.sf-field-submit { display: inline-block; } .searchandfilter ul li.sf-field-reset input, .searchandfilter ul li.sf-field-submit input { width: 75px; background: #666; color: #fff; } .searchandfilter > ul > li select { width: 200px; } /* the next is 200px-(2*12px padding) - (2*1px border) */ .searchandfilter ul li.sf-field-search input { width: 174px; }
I already added that in the WordPress Customiser for you.
Anonymous(Private) May 12, 2018 at 8:26 am #177186Hi Trevor,
That’s exactly what I need.
However, in order for users to have more search options, I used the WP Tab Widget Pro. Unfortunately, the buttons are no longer on the same row. Maybe that’s because of the layout of that Tab plugin. Would you mind helping me solve that problem? I am very grateful for your help.
Trevor(Private) May 12, 2018 at 8:46 am #177189oooh. That plugin has some badly (not very targetted) CSS. I have fixed the Custom CSS I wrote to this:
.wpt_widget_content .tab-content .searchandfilter ul li.sf-field-reset { width: 75px; display: inline-block; margin-right: 50px; } .wpt_widget_content .tab-content .searchandfilter ul li.sf-field-submit { width: 75px; display: inline-block; } .wpt_widget_content .tab-content .searchandfilter ul li.sf-field-reset input, .wpt_widget_content .tab-content .searchandfilter ul li.sf-field-submit input { width: 75px; background: #666; color: #fff; } .searchandfilter > ul > li select { width: 200px; } /* the next is 200px-(2*12px padding) - (2*1px border) */ .searchandfilter ul li.sf-field-search input { width: 174px; }
-
AuthorPosts