Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Print & PDF by PrintFriendly

    (@printfriendly)

    There’s no <img> tag in between your span. Is that the problem?

    Send me the url of a page I can observe the issue, that will help troubleshoot.

    Thread Starter ObanTM

    (@obantm)

    There’s no need in IMG tag for Genericon/Fontawesome/Icomotion kind of icon font sets.

    They’re using CSS classes and pesudoelement ::after to display the content.

    Unforunatelly I can not send you the URL. It’s a live site, and if I keep the code it will ruin my layout.

    But here’s a couple of shots:

    How it looks from the front:
    https://m08i.imgup.net/2016-08-24177f.png

    It’s source code:
    https://p67i.imgup.net/2016-08-24ee67.png

    As you can see < > ' replaced with HTML entities. Is there any workabouts for it?

    Plugin Author Print & PDF by PrintFriendly

    (@printfriendly)

    Does it work if you use a regular image or text? If so, then troubleshoot your font set.

    Thread Starter ObanTM

    (@obantm)

    There’s nothing wrong with the font set. It works well when I inject icon classes into your <SPAN class="printfriendly-text2"> tag.

    Shown here: https://m38i.imgup.net/2016-08-272896.png (https://prioncrb.ru/job/vacancy.html) Done with the jQuery function AddClass().

    My layout goes berserk when I put my own SPAN (or whatever else) tag in your ‘Text’ input field because of a filter applied to it’s value. That filter replaces angle brackets with HTML entities so HTML code becomes a text.

    Was this resolved? I am having the same issue using FontAwesome. It was working fine before I updated the plugin but now any HTML I put into the ‘Text’ input field just shows as text, not HTML.

    Plugin Author Print & PDF by PrintFriendly

    (@printfriendly)

    Work around, get the HTML button code and add the HTML code direct to your template.

    We’ve got icon support on our roadmap, but might take some time to release.

    Thanks for the reply… The funny thing is that it worked fine until the most recent update. So whatever you added in that update strips out the html in the text box.

    Plugin Author Print & PDF by PrintFriendly

    (@printfriendly)

    This is working now. You can now add HTML to the text field.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Using Genericon as Print Button’ is closed to new replies.