Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Disable Links
This topic contains 12 replies, has 2 voices, and was last updated by Ernest Marcinko 5 years, 9 months ago.
- AuthorPosts
- February 8, 2018 at 1:13 am #16697
I reached out earlier about disabling the links from the results and you said to buy the plugin and reach out.
So I’m reaching out. PS. I bought the plugin but I’m currently using the lite cause it was working better for me.
February 8, 2018 at 1:22 am #16698Hi!
Thank you very much for supporting us.
This custom CSS should do the trick:
a.asl_res_url, a.asp_res_url { pointer-events: none !important; cursor: default !important; }
Apply this code to your theme custom CSS field (if it supports it) or use the custom CSS field on the search plugin back-end.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
February 8, 2018 at 1:40 am #16699Man….Your AWESOME!!!!!
February 8, 2018 at 3:34 am #16700Random question but I wanted to ask. Is there a way to send all the results to a external link? Meaning if they clicked on any of the results I could send them to yahoo.com?
February 8, 2018 at 9:31 am #16703You are welcome 🙂
Yes, that should be possible, but depends on where exactly the link would redirect.
Best,
If you can give me an example, I might be able to construct a custom code to manipulate the result URLs the way you want them.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
February 8, 2018 at 8:56 pm #16708YOu bet…The exactl link is https://itunes.apple.com/us/app/fluid-app/id1157853544
February 9, 2018 at 11:02 am #16710Hi!
This will do the trick, but you will have to remove the previous custom CSS of course.
Add this custom code to the functions.php in your theme/child theme directory (copy from line 3 only!). Before editing, please make sure to have a full site back-up just in case!
Let me know if you need help with it.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
February 11, 2018 at 9:45 pm #16728Bummer….I could get that to work.
Here is the page I’m working on.
February 12, 2018 at 10:04 am #16731Oops, sorry, my mistake, it was missing 1 line.
This should be the correct one:
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
February 12, 2018 at 11:40 pm #16766Hmmm….this code throws a 500 error.
Anything i’m missing?
February 13, 2018 at 9:15 am #16771Hi,
The code is definitely correct, I just tested on two servers. Make sure to first remove the previous one, as well as only copy from line 3 – then it should work. Let me know.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
February 13, 2018 at 9:02 pm #16779Yep..You were right.User error of course. What I did wrong was only allow your code to run on front end of the website versus the whole entire thing. I’m using a special plug-in called code Snippets. Thanks again for all your help it’s now working magically.
Attachments:
You must be logged in to view attached files.February 13, 2018 at 10:02 pm #16781You cannot access this content. Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.