Nav Menuにfontawesomeアイコンを追加してみよう

Facebook
Twitter

Nav Menuウィジェットを使って簡単にメニューを表示できますが、アイコンをつけることができません。ここではfontawesomeアイコンを入れる方法を解説します。

Nav Menuウィジェット > 詳細タブ > Custom CSS

Custom CSS部分に以下のcssを入れます。
疑似要素(:after,:before)のcontentにアイコンを指定する方法でアイコンを入れます。

selector li:before {
content: “\f105”;
font-family: FontAwesome;
}

selector li a {
display:inline;
}

 

 

fontawesomeサイトより入れたいアイコンの図の部分をコピペして 上記cssのcontent部分へ貼り付けます。

Font Awesome Free’s Cheatsheet
https://fontawesome.com/cheatsheet?from=io

DEMO

Elementorカテゴリ
Sponsored Links

Announce

New
arrival

2019 collection

Let’s face it, no look is really complete without the right finishes. Not to the best of standards, anyway (just tellin’ it like it is, babe). Upgrading your shoe game. Platforms, stilettos, wedges, mules, boots—stretch those legs next time you head out, then rock sliders, sneakers, and flats when it’s time to chill.

Announce

New
arrival

2019 collection

Let’s face it, no look is really complete without the right finishes. Not to the best of standards, anyway (just tellin’ it like it is, babe). Upgrading your shoe game. Platforms, stilettos, wedges, mules, boots—stretch those legs next time you head out, then rock sliders, sneakers, and flats when it’s time to chill.