[Support request] Font Awesome in GP Hooks

Home Forums Support Font Awesome in GP Hooks

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #224813
    Marc

    I’m attempting to use a Font Awesome icon as the value of an input field in the Before Footer Content hook. However, when I save the hooks, the icon code is stripped out and replaced by a square, as below.

    Code I enter:
    <input type="submit" value="" name="subscribe" id="mc-embedded-subscribe">

    Code that appears after I save:
    <input type="submit" value="" name="subscribe" id="mc-embedded-subscribe">

    What am I doing wrong?

    Thanks!

    #224814
    Marc

    Well, the code was stripped out in my post, too!

    I was trying to use the following as the value: value=””

    #224815
    Marc

    Trying again, this is frustrating:

    value=

    #224816
    Marc

    Oh, balls. It keeps stripping out what I intend. I’m using the example found here for the value:

    http://jsfiddle.net/VVS2P/91/

    #224847
    Tom
    Lead Developer
    Lead Developer

    Hmm, I entered that value &#xf002; into GP Hooks and it saved as is – but I did get a weird character on the actual page.

    Where are you getting that code from?

    #225027
    Marc

    Thanks for the reply, Tom! I’m attempting to use the font awesome envelope icon as a submit button for a MailChimp registration submit button. The JSFiddle example I linked to shows an example using a different FA icon.

    But every time I click Save Hooks with the Unicode in it, the result is just a small square–same on the actual page.

    #225104
    Tom
    Lead Developer
    Lead Developer

    Why not just use the Font Awesome HTML?

    For example:

    <i class="fa fa-envelope" aria-hidden="true"><!-- icon --></i>

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.