[Support request] Font Awesome before and/or after button text

Home Forums Support [Support request] Font Awesome before and/or after button text

Home Forums Support Font Awesome before and/or after button text

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #231124
    scott doel

    Hi Tom,

    I’d like to have the ability to choose a Font Awsome icon to add to a button. I’ve gone through the forum and added the CSS for different colours and the buttons work great using the below code
    <a href="#">Green button</a>
    I have add the FA call before the text and this works fine, just a little clunky
    <a href="#"><i class="fa fa-bolt"></i> My Graphite Button</a>

    Is there a better way without adding in another plugin?

    #231332
    Tom
    Lead Developer
    Lead Developer

    That’s exactly how I would do it.

    For example, here’s the install button from the home page here:

    <a class="button green" href="https://generatepress.com/install-generatepress">Install <i class="fa fa-power-off"><!-- download icon--></i></a>

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