Show Pdf File Instead Instead of Downlaod

  • Unknown's avatar

    Hi, I am facing an issue in wordpresss. I want to show/open pdf file on the next tab instead of downloading this pdf file automatically. Anybody who help me how to open pdf file. I want to use this feature on my blog when user come here and click the file the file will be open in next tab instead of download automatically.

    Thanks in Advance
    Cheers!

    The blog I need help with is: (visible only to logged in users)

  • Hi there,

    Your site at http://frasesparaestados.com/ is not a WordPress.com site, so we have no access to it and no control over how it works. For help with that site it’s best to ask in the self-hosted WordPress forums instead:

    https://wordpress.org/support/

    But assuming you’re adding these PDF files as links to your site, you do this by editing the link’s HTML. Edit the post or page where you have the PDF, and switch to the HTML/Text view of the editor. Find the link. It will be wrapped in arrow brackets and contain:

    <a href="http://...">

    https://en.support.wordpress.com/beginning-html/#adding-a-link

    That is how a link looks in HTML. Edit that to include the following:

    <a href="http://..." "target=_blank">

    Update the post or page. Now that link will open a new browser tab when clicked.

  • The topic ‘Show Pdf File Instead Instead of Downlaod’ is closed to new replies.