Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Link customization in search results
This topic contains 5 replies, has 2 voices, and was last updated by Ernest Marcinko 9 years, 10 months ago.
- AuthorPosts
- November 14, 2013 at 12:23 pm #796
Hello,
How could I change the standard link url in the search results to a customized one?
For example, the post url is http://mydomain.com/portfolio/andrea/ however in the search results I want to change that url link to a customized url, using the post ID (http://mydomain.com/women/#1503)
Thank you for your support,
Angel-
This topic was modified 9 years, 10 months ago by
shuttlebrand.
November 14, 2013 at 1:56 pm #799Hi!
Well, there is no possible way for this to do from the administrator area. It’s only possible by editing the search code. I’m not sure how experienced you are in wordpress programming, but are you using those urls elsewhere also? Are they coming from a plugin? Is there maybe a wordpress filter that is applied elsewhere (in plugin, template) that creates those kinds of urls? Is this kind of url redirecting to the desired page?
Let me know if you know anything about these, and we will figure out a solution.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
November 14, 2013 at 3:48 pm #801Hi,
I’m using Photolux WP Theme, it uses a JS to display all portfolio items in a gallery grid (http://pexetothemes.com/demos/photolux_wp/) so I guess the url is generated there.
I’m not a programmer but if you can point me the right direction where I should start to look will help me a lot.
Thank you for your support.
November 18, 2013 at 10:49 am #810Hi!
I see what you are trying to do here. You want the portfolio links to show as it’s on the main page, not as separate posts. I’m not sure if this is possible, however changing the links won’t help, I’m 100% sure. It is most likely that the template has a jQuery code, that is responsible for that effect. It must be bound to a “class” element or something similar. However I’m not sure that adding the proper class would help.
After examining the code, I found that the https://pexetothemes.com/demos/photolux_wp/wp-content/themes/photolux/js/grid-gallery.js is creating the slide/load effect, that you want. However I’m unable to tell how to modify the search output to make it work properly. Can you please consult with the theme creator? He may advise what exactly needs to be done with the search output, and then I will make the proper modifications for you.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
November 18, 2013 at 11:12 am #813Hi again,
Thank you for your support, I have openned a ticket in Theme support center, I’ll keep you informed.
November 18, 2013 at 11:20 am #814 -
This topic was modified 9 years, 10 months ago by
- AuthorPosts
You must be logged in to reply to this topic.