Image attachment preview in Doc Preview page template

Viewing 2 posts - 1 through 2 (of 2 total)
#174990

Victoria Chu
Participant

Hi,
I’m trying to display image attachment preview in the Doc Preview template file. The code I have so far is:

<!-- WPDM Template: Single Column with Doc Preview  -->
<div class="card mb-3">
    <div class="card-body">
        <img src="[preview]" />
        [doc_preview]
    </div>
</div>
    <!--- removed file details --->
<div class="card mt-3 mb-3">
    <div class="card-body">
        [download_link]
    </div>
</div>

[description]

The image preview was showing before but now it’s not. I was wondering if there’s something I need to fix in the code?

Also the “[doc_preview]” is not displaying the file preview all the time, it’s inconsistent. How can we approach resolving that?

Thank you for your time/help

#175121

Nayeem Riddhi
Moderator

Hello Victoria Chu,

Hope you are well. I am checking your issues here,

Image attachment preview in Doc Preview page template

please continue your discussion here.

Thank you and regards

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

The topic ‘Image attachment preview in Doc Preview page template’ is closed to new replies.