Hi There,
Maybe you should not be doing a custom modifications for now. I suggest you use the FontAwesome icons code instead as your custom menu item’s Navigation Label (https://prnt.sc/67ufyv).
Facebook
<i class="x-icon x-icon-facebook-square" data-x-icon="" ></i>
Instagram
<i class="x-icon x-icon-instagram" data-x-icon="" ></i>
Youtube
<i class="x-icon x-icon-youtube-square" data-x-icon="" ></i>
Twitter
<i class="x-icon x-icon-twitter-square" data-x-icon="" ></i>
Pinterest
<i class="x-icon x-icon-pinterest-square" data-x-icon="" ></i>
Google+
<i class="x-icon x-icon-plus-square" data-x-icon="" ></i>
LinkedIn
<i class="x-icon x-icon-linkedin-square" data-x-icon="" ></i>
Vimeo
<i class="x-icon x-icon-vimeo-square" data-x-icon="" ></i>
Tumblr
<i class="x-icon x-icon-tumblr-square" data-x-icon="" ></i>
SoundCloud
<i class="x-icon x-icon-soundcloud" data-x-icon="" ></i>
If you need other icons, please go here (http://fontawesome.io/icons/). Select the icon that you need, get the icon’s unicode and class name (https://prnt.sc/g66jr4)
Then supply it to the data-x-icon and class attribute respectively.
Keep in mind that we prefix our fontawesome class with x-icon- instead of the fontAwesome’s default fa-
Do not use custom codes from the old forum anymore as most if not all of those are for X version 4 and no guarantee that they would work in X5 or PRO.
Hope it helps,
Cheers!