Forums Forums Search & Filter Pro Just bought and set up Search and Filter Pro.

Viewing 10 posts - 21 through 30 (of 39 total)
  • Anonymous
    #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
    #57185

    It 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
    #57187

    Yes, 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
    #57188

    Are you able to put a copy of the search-filter.php file on a file sharing site for me to download, like dropbox?

    Anonymous
    #57190
    This reply has been marked as private.
    Trevor
    #57191

    Do 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"]' ); ?>
    
    Anonymous
    #57193
    This reply has been marked as private.
    Trevor
    #57195

    Ok

    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;}
    Anonymous
    #57196

    The Text “If you didn’t find what you were looking for, try a new search!” is now fixed but the elements are still messed up. Also the submit button is not clickable.

    Anonymous
    #57197

    Sorry my bad, had to clear cache. The submit is the only issue.

Viewing 10 posts - 21 through 30 (of 39 total)