Skip Navigation

[Resolved] Help with toolset blocks

This thread is resolved. Here is a description of the problem and solution.

Problem:

The user wants to display uploaded documents on their membership site in a new tab or page when clicked, instead of automatically downloading the document. They are looking for a solution to open and display the document first, with an option to download it on the web page.

Solution:

As Toolset cannot achieve this functionality, the user is advised to use a third-party PDF viewer plugin for WordPress that can force the PDF file to display in the browser.

Relevant Documentation:

WordPress PDF Viewer Plugins: https://kinsta.com/blog/wordpress-pdf-viewer-plugins/

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

This topic contains 2 replies, has 2 voices.

Last updated by acts-1224C 1 year, 8 months ago.

Assisted by: Christopher Amirian.

Author
Posts
#2566007

I have a membership site in which I have uploaded documents for people to read.
The intent is when people click on the link or button, the uploaded document stored in the media folder should open in a new tab or page.
However, when people click on the link, it automatically downloads the document instead of just opening it. I want first for the document to open and display it. If the viewer wants to download, then I add a button for it on that web page to download the content or document.

Is it possible? Here is the code I am using.

<div class="row">
<div class="col-md-1">[types field='agenda-attmt-1' title=' Doc 1<br><img src="hidden link" target="_blank" rel="noopener noreferrer" width="60"> '][/types]</div>
<div class="col-md-1">[types field='agenda-attmt-2' title='Doc 2<br><img src="hidden link" target="_blank" rel="noopener noreferrer" width="60">'][/types]</div>
<div class="col-md-1">[types field='agenda-attmt-3' title='Doc 3<br><img src="hidden link" target="_blank" rel="noopener noreferrer" width="60">'][/types]</div>
<div class="col-md-1">[types field='agenda-attmt-4' title='Doc 4<br><img src="hidden link" target="_blank" rel="noopener noreferrer" width="60">'][/types]</div>
</div>

Thanks

#2566299

Christopher Amirian
Supporter

Languages: English (English )

Hi there,

It is not what Toolset can do. Instead, you can use a third-party plugin that is a PDF viewer to force the PDF file to show on the browser.

You can compare the available plugins that do such a thing here:

hidden link

Thanks.

#2567275

My issue is resolved now. Thank you!