Forums › Forums › Search & Filter Pro › Just bought and set up Search and Filter Pro.
Tagged: Install instructions
- This topic has 38 replies, 2 voices, and was last updated 8 years, 2 months ago by Anonymous.
-
Anonymous(Private) September 10, 2016 at 2:20 pm #57184
I am sorry I tried some names but it does not make sense to me. I think that whatever the theme template I choose, there will not be the Search form that I’ve created there, by default. They are theme templates after all. Am I wrong? Thank you again for your time and effort.
Trevor(Private) September 10, 2016 at 2:28 pm #57185It rather depends on your theme and how you add widgets (like the form), to the page or template. If you are stuck with the search template, make a copy of it with a new name and use that name in the form setup. Does that work the same way as using the search.php template? if it does, then it is a case of editing that template you made.
Anonymous(Private) September 10, 2016 at 2:35 pm #57187Yes, I’ve already created a copy of it. The search-filter.php. My guess is that I need to replace the default search bar there with the form that I’ve created. I do not know how to do it though on php. I do not know if I could just “call” the element from the form, or need handwritten code for the whole thing. And unfortunately the search results page is not an editable template. Otherwise it would be easy. I’ve contacted the Avada support but I believe that it will be out of their jurisdiction, and I will probably need a dev for this.
Trevor(Private) September 10, 2016 at 3:37 pm #57191Do you see this part?
<form class="searchform seach-form" role="search" method="get" action="<?php echo home_url( '/' ); ?>"> <div class="search-table"> <div class="search-field"> <label class="screen-reader-text" for="searchform"><?php _e( 'Search for:', 'Avada' ); ?></label> <input id="searchform" type="text" value="" name="s" class="s" placeholder="<?php esc_html_e( 'Search ...', 'Avada' ); ?>"/> </div> <div class="search-button"> <input type="submit" class="searchsubmit" value="" /> </div> </div> </form>
What happens if you replace this with this?
<?php echo do_shortcode( '[searchandfilter id="2426"]' ); ?>
Trevor(Private) September 10, 2016 at 4:33 pm #57195Ok
Immediately beneath the do_shortcode line, put this:
<div class="clearfix"></div>
The labels and input check boxes are not aligning due to some difference in CSS between the pages. Custom CSS would fix this.
.search input, .searchform input {display: inline-block !important;} .searchandfilter ul li li {padding: 0 !important;}
-
AuthorPosts