Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Disable Links
- This topic has 12 replies, 2 voices, and was last updated 8 years, 3 months ago by
Ernest Marcinko.
-
AuthorPosts
-
February 8, 2018 at 1:13 am #16697
chapmanmarketingsolutions
ParticipantI 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 #16698Ernest Marcinko
KeymasterHi!
Thank you very much for supporting us.
This custom CSS should do the trick:
[html]a.asl_res_url,
a.asp_res_url {
pointer-events: none !important;
cursor: default !important;
}[/html]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.
February 8, 2018 at 1:40 am #16699chapmanmarketingsolutions
ParticipantMan….Your AWESOME!!!!!
February 8, 2018 at 3:34 am #16700chapmanmarketingsolutions
ParticipantRandom 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 #16703Ernest Marcinko
KeymasterYou are welcome 🙂
Yes, that should be possible, but depends on where exactly the link would redirect.
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.February 8, 2018 at 8:56 pm #16708chapmanmarketingsolutions
ParticipantYOu bet…The exactl link is https://itunes.apple.com/us/app/fluid-app/id1157853544
February 9, 2018 at 11:02 am #16710Ernest Marcinko
KeymasterHi!
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.
February 11, 2018 at 9:45 pm #16728chapmanmarketingsolutions
ParticipantBummer….I could get that to work.
Here is the page I’m working on.
February 12, 2018 at 10:04 am #16731Ernest Marcinko
KeymasterOops, sorry, my mistake, it was missing 1 line.
This should be the correct one:
February 12, 2018 at 11:40 pm #16766chapmanmarketingsolutions
ParticipantHmmm….this code throws a 500 error.
Anything i’m missing?
February 13, 2018 at 9:15 am #16771Ernest Marcinko
KeymasterHi,
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.
February 13, 2018 at 9:02 pm #16779chapmanmarketingsolutions
ParticipantYep..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.
February 13, 2018 at 10:02 pm #16781Ernest Marcinko
KeymasterYou cannot access this content.
-
AuthorPosts
- You must be logged in to reply to this topic.