PDF link does not open directly

Home Forums Product Support Forums Ajax Search Pro for WordPress Support PDF link does not open directly

This topic contains 5 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 9 months, 2 weeks ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #33902
    aag2021
    aag2021
    Participant

    Hi,

    I am desperate. Need help!

    I purchased the search plugin in the hope it would be smooth sailing.

    It was mostly fine, except for a major snag.

    When a PDF file is in the search results (as it often will be), the results give a link for the actual page (Screenshot: Search result-pdf) . However, when you click the link it again takes you to a page which has a FURTHER link to the actual PDF (see screenshot:PDf Result post).
    Basically, one has to drill down further. This is obviously a terrible and unexpected user experience.. My client is not ok with this.
    The original link should directly open the PDF, in a new tab, in the browser.

    Can you help adjust this, or fix it?
    Really need your urgent help.

    Thanks
    Asma

    Attachments:
    You must be logged in to view attached files.
    #33907
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    Thank you for the details!

    Make sure to change this option to link to the attachment file directly: https://i.imgur.com/4qusDcu.png
    It should do the trick.

    Best,
    Ernest Marcinko

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


    #33926
    aag2021
    aag2021
    Participant

    Hi,
    Thank you for the prompt reply and the help.

    Can you please let me know if the pdf can be opened in a new tab?
    I donot want visitors to find a way to the website back after clicking a pdf serach result.
    Can you please let me know, how to open the serch result -pdf in a new tab?

    #33927
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Sure, you can change the results location here: https://i.imgur.com/TK0qMId.png

    Best,
    Ernest Marcinko

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


    #34214
    aag2021
    aag2021
    Participant

    Hi
    Still continuing the same installation 🙂
    (Previously I created custom filters for Pages but instead need for attachements)

    We want to have filters only for PDF attachments.
    These will be Newsletter and Insights.
    These filters should be check boxes.

    The heading for these filters is Articles and it should look like following:

    Articles
    — <Checkbox> News
    — <CheckBox> Insights

    I am not sure how Ajax pro will differentiate between ‘”News”PDFs and “Insights” PDFs.
    Do we need to set up something on WP so ajax pro can recognize the different categories/ filters?
    Can you please guide me on whether there is any WP plugin which would be appropriate here?
    Thank you in advance.

    #34219
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Attachments luckily can use custom taxonomies – that is what you are looking for.
    Basically, you need to create a custom taxonomy, and configure it to work with attachments only. Usually the best way to do it is programmatically, this guide can help with that.

    For a simpler solution, this plugin could work, or maybe PODs, but I would avoid using bigger plugins like PODs (or even the smaller ones if possible), unless you need more of their features.

    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.