Site logo

Archived topic

Add icon to menu bar

3 replies · Started by Mirjam on July 31, 2018

Viewing posts 1–4 of 4

Hello,

I'm trying to add an icon to my menu/navigation bar.
Here's what I've done:

- Upload + activate plugin Better Font Awesome
- Added 'add_action( 'wp_enqueue_scripts', 'tu_load_font_awesome' );
/**
* Enqueue Font Awesome.
*/
function tu_load_font_awesome() {
wp_enqueue_style( 'font-awesome', '//use.fontawesome.com/releases/v5.1.0/css/all.css', array(), '5.1.0' );
}'
to my child theme's Function.php
- Added '<i class="fas fa-shopping-cart"></i>' to the navigation label in Appearance > Menus

It returns a 'broken' icon image, https://snag.gy/bMlJ3U.jpg (between 'shop' and the Dutch flag).

The website is currently in 'coming soon' mode and only visible to admins.

What am I overlooking here?

Many thanks!

Mirjam

Great! Many thanks!

You're welcome :)

This archived topic is closed to new replies.