Two questions about setting

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Two questions about setting

This topic contains 6 replies, has 2 voices, and was last updated by glorileematsuri glorileematsuri 8 years, 7 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #915
    glorileematsuri
    glorileematsuri
    Participant

    Hi, I have two questions.
    1) How to set a closer distance between search box and search result box?
    2) How to display “Search for: testpostlorem ipsumelements” under search box like demo?

    Thank you.

    Attachments:
    You must be logged in to view attached files.
    #918
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi!

    1. It is not adjustable. Is the distance bigger then in the demo? If it is, then it’s probably a bug, let me know!

    2. It’s a custom script written for the demo page, if you want it then I help you creating something similar.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #919
    glorileematsuri
    glorileematsuri
    Participant

    I want a custom script. How can I create it?

    #920
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Ok!

    You need to add this to the site header.php between the head tags:

      <script>
      $(document).ready(function(){
        $(".searchfor").on("click", function(){
           var $input = $('.orig', $(this).parent().parent());
           $input.val($(this).html());
           $('.promagnifier', $(this).parent().parent()).click();
           console.log("the input:", $input);
        });
      });
      </script>

    After that, you need to add the keywords with the following html under the search:

    <div class="sfor">
      Search for: 
      <a class="searchfor">test</a>
      <a class="searchfor">post</a>
      <a class="searchfor">lorem ipsum</a>
      <a class="searchfor">elements</a>
    </div>

    If you want to style the keywords you can add additional CSS to any css file included in your template:

    .sfor {
      color: #777777;
      font-size: 12px;
      padding-left: 5px;
    }
    
    a.searchfor {
      color: #5990DE;
      font-size: 12px;
    }
    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #921
    glorileematsuri
    glorileematsuri
    Participant

    Can you delete this post? Cos private reason.

    #922
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    The private details (website, password) are not visible to anyone else, don’t worry 🙂

    But I will make this post completely invisible.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #923
    glorileematsuri
    glorileematsuri
    Participant

    Thank you very much. Your plugin is so powerful and i will rate you five star~~

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Two questions about setting’ is closed to new replies.