Archived topic
Font Awesome before and/or after button text
1 reply · Started by scott doel on October 2, 2016
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?
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>