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 10 years, 2 months ago.
- AuthorPosts
- January 16, 2014 at 1:57 pm #915
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.January 16, 2014 at 3:03 pm #918Hi!
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 :)
January 16, 2014 at 3:32 pm #919I want a custom script. How can I create it?
January 16, 2014 at 4:01 pm #920Ok!
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 :)
January 17, 2014 at 1:18 pm #921Can you delete this post? Cos private reason.
January 17, 2014 at 1:30 pm #922The 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 :)
January 17, 2014 at 1:34 pm #923Thank you very much. Your plugin is so powerful and i will rate you five star~~
- AuthorPosts
The topic ‘Two questions about setting’ is closed to new replies.