Link customization in search results

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

 
Keymaster
8 years, 2 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #796

    Participant

    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 8 years, 2 months ago by  shuttlebrand.
    #799

    Hi!

    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 :)


    #801

    Participant

    Hi,

    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.

    #810

    Hi!

    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 :)


    #813

    Participant

    Hi again,

    Thank you for your support, I have openned a ticket in Theme support center, I’ll keep you informed.

    #814

    Thank you!

    Best,
    Ernest Marcinko

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


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

You must be logged in to reply to this topic.