• Resolved VernonDozier

    (@vernondozier)


    Mimetypes Link Icon is great but I recently ran into an issue with it involving another plugin. After updating Ninja Forms, anytime there is a PDF link on a form the class=”mtli_attachment mtli_pdf element is stripped out so no icon appears. Wondering if there is a workaround to get the stripped info added back to the links since Ninja Form support has no interest in even trying to help. Thanks.

    BEFORE Ninja Form update PDF icon on form is visible
    Some Document

    AFTER Ninja Form Update PDF icon on form is not visible
    Some Document

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter VernonDozier

    (@vernondozier)

    Sorry, let me try this part again.

    BEFORE Ninja Form update PDF icon on form is visible
    <_a href=”https://www.somefictionalwebsite.com&#8221; target=”_blank” class=”mtli_attachment mtli_pdf”>Some Document

    AFTER Ninja Form Update PDF icon on form is not visible
    <_a href=”https://www.somefictionalwebsite.com&#8221; target=”_blank”>Some Document

    Plugin Contributor Juliette Reinders Folmer

    (@jrf)

    Hi @vernondozier,

    There are two things which come to mind straight away:
    1. Have you tried using the async option ? As long as you don’t use the file size option, that should probably work.
    2. Alternatively, a bit more complicated – you could check on what priority the Ninja Form plugin hooks into the the_content and adjust the hook priority for the MTLI hook in.

    Let me know if this helps.

    Smile,
    Juliette

    Thread Starter VernonDozier

    (@vernondozier)

    Thank you for the feedback. async option didn’t help unfortunately, and the hook priority method is way over my head but something I will pursue over time when I can understand it. Thankfully, the number of links is small so I just manually added class=”mtli_attachment mtli_pdf to the HTML for each.

    Plugin Contributor Juliette Reinders Folmer

    (@jrf)

    I’m glad to hear you’ve found a workable solution for your situation!

    Can this topic be marked as resolved ?

    Thread Starter VernonDozier

    (@vernondozier)

    Indeed it can.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘class=”mtli_attachment mtli_pdf” is removed by another plugin’ is closed to new replies.