Showing icon instead of label in PDF shortcode

By: Oguz Atci | Asked: 08/20/2024
ForumsCategory: General questionsShowing icon instead of label in PDF shortcode
Oguz Atci asked 3 months ago

Hello everyone, For edit shortcode in Views i am using this particular code to show an icon instead of the label itself and it perfectly works. 

[editlink label="<img src='portal.conceptuv.com/wp-content/uploads/2024/08/edit-ico.svg' alt='Düzenle' width='25' height='25'/>" page_id=1264]

When i approach witth the same logic to pdf shortcode, unfortunately image is not showing:

[frm-pdf view="1884" mode="download" label="<img src='portal.conceptuv.com/wp-content/uploads/2024/07/pdf.svg' alt='PDF İndir' width='25' height='25'/>" public="1"]

 

Could you please advise if there\'s any way to do that?

1 Answers
Rob LeVineRob LeVine answered 3 months ago
Looking at the Formidable PDF code, you can't do it that way. The code is expecting text, so whatever you pass it, it will format as text. The only way I can think of (and haven't tried it) is to add jQuery to your email that finds the anchor tag and replaces the text contents with your img tag.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right