Change icon based on document extension

Hello,

Is it possible to show a different icon based on document extension?

I’m using ACF Repeater to add documents to the page, but I’m unsure how to connect it with different icons in Cornerstone.

I did try to put a PDF icon element with a condition string {{dc:looper:field key=“dokument.subtype”}} is .pdf, but that doesn’t work.

Can you point me in the right direction?

Best regards

Hello @ofirdoo,

Thanks for writing to us.

In order to help you with your concern, please share your details in a secure note. Please provide the following details

  • WordPress Login URL
  • Admin-level username and password
  • Exact page URL

You can find the Secure Note button at the bottom of your posts

Thanks