ResolvedFlaticon Font Replacement
- This topic has 5 replies, 3 voices, and was last updated 1 year, 9 months ago by
dominic.peer.
- AuthorPosts
- December 12, 2021 at 8:02 pm #32477
dominic.peer
ParticipantHi Dimitar,
i have read the following article:
https://althemist.com/forums/topic/megamenu-icon-set-additions/Unfortunately, I still have not managed to replace or exchange the icons.
Since it is very important for me to have other, suitable icons, I would like to ask for your help.
Below I would like to explain the experiment I made.1.) I have a Flaticon Premium account and have put together my own set.
Afterwards I downloaded the “Font”. (See attachment)
2.) In the next step I have via FTP in the following folder:
/lafka/styles/flaticon/font/
and uploaded my new files from the font with the extensions .css; .woff; .svg and .ttf.
3.) Now I am in the file:
wp-content/themes/lafka/js/lafka-back.js
and changed the existing names of the icons with the new names from my font and its CSS. (file attached)
4.) Now in the wordpress backend under menu the number of icons is correct, but some weird icons are displayed and not the ones I would like to have. 🙁Please please can you help me?
My project depends on it. Unfortunately I can not continue to work with the existing icons.Thank you and best regards,
DominicDecember 13, 2021 at 4:45 pm #32483Althemist
KeymasterHi Dominic,
Sounds like the icon font is not properly enqueued in the admin area.
December 13, 2021 at 6:06 pm #32488dominic.peer
ParticipantHi Dimitar,
how may i understand this? Can you possibly help me a little more precisely here?
December 14, 2021 at 2:59 pm #32494Alex
KeymasterHi Dominic,
While you are in the admin, run the developer console, click the network tab, then CSS, refresh the page and search for your font css file. If you see it, means the fonts css is loaded.
Regards,
AlexDecember 14, 2021 at 3:02 pm #32495Althemist
KeymasterHi Dominic,
Additionally to what Alex said, just reminding you that since version 3.0 you can use your own custom images (including SVGs) for the main menu icons.
December 14, 2021 at 7:59 pm #32500dominic.peer
ParticipantHi Alex and Dimitar,
thank you very much for your help! Through the tip from Alex, I have now been able to correct everything and have made it. My font is loaded. The error was that Flaticon.css was searched for in “get” and it was lower case in my case. I have now simply capitalized the F and lo and behold, it works right away.
Thanks a lot! You are the best!
Regards,
Dominic - AuthorPosts
You must be logged in and have valid license to reply to this topic.