Using the awesome Font icons in Woocommerce?

Asked

Viewed 122 times

1

How to use icons from Font Awesome on the Woocommerce pages?

1 answer

2


I believe this way it will work, goes in functions.php and adds this code.

inserir a descrição da imagem aqui

add_action( 'wp_enqueue_scripts', 'enqueue_load_fa' );
function enqueue_load_fa() {

    wp_enqueue_style( 'load-fa', 'https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css' );

}

Now just add the icons in the text editor, like this

<i class="fa fa-home fa-fw" aria-hidden="true"></i>

Source: https://www.elegantthemes.com/blog/tips-tricks/font-awesome-wordpress

Official Documentation of Woocomerce about Font-Awesome

https://docs.woocommerce.com/document/using-icon-fonts/

List of icons: http://fontawesome.io/icons/

Browser other questions tagged

You are not signed in. Login or sign up in order to post.