Home › Forums › Support › Where can I put code to Font Awesome? This topic has 11 replies, 4 voices, and was last updated 4 years, 6 months ago by David. Viewing 12 posts - 1 through 12 (of 12 total) Author Posts December 3, 2018 at 8:34 am #746889 Jesús Hello! My icons don´t show to menu. I´ve installed plugin Awesome but I think that I need this: add_action ('wp_enqueue_scripts', 'tu_load_font_awesome'); / ** * Enqueue Font Awesome. * / función tu_load_font_awesome () { wp_enqueue_style ('font-awesome', '//use.fontawesome.com/releases/v5.3.1/css/all.css', array (), '5.3.1'); } https://docs.generatepress.com/article/font-awesome/ But… Where can I put this code? ¿Functions.php? Thanks! December 3, 2018 at 9:01 am #746922 TomLead Developer Lead Developer If you’re using a child theme, functions.php is best. If not, one of these methods will work: https://docs.generatepress.com/article/adding-php/ December 3, 2018 at 4:28 pm #747234 Jesús Hello! I don´t know what I´m doing bad… 1. I´ve created a theme child. 2. I´ve added the function and plugin of Font awesome. 3. I insert this: And not work 🙁 December 3, 2018 at 4:31 pm #747238 LeoStaff Customer Support Looks like it should work. Any chance you can link us to the site in question? You can edit the original topic and use the private URL field. Let me know 🙂 December 3, 2018 at 5:04 pm #747253 Jesús Hello Leo! I´ve added my web in my post. Thank! December 3, 2018 at 5:06 pm #747255 LeoStaff Customer Support Can you clear and then disable the caching plugin to test? December 3, 2018 at 5:13 pm #747264 Jesús I´ve cleaning caché, regenerate css, purge the url.. and i´ve disable the plugin to cache but not work 🙁 You can checked. Have you other idea? 🙂 December 3, 2018 at 5:46 pm #747289 TomLead Developer Lead Developer A plugin you’re using is adding Font Awesome 4.7 improperly. They should be adding the version number so WordPress uses the latest version (your function). Since this plugin is adding 4.7 anyways, you might as well use those icons: https://fontawesome.com/v4.7.0/ December 3, 2018 at 6:08 pm #747299 Jesús Yes! Perhaps, I use too Menu Icons! Could I resize the space between icons? I´m using: menu-item-float-right But space between icons is a little big… Thank you! December 4, 2018 at 3:16 am #747549 DavidStaff Customer Support Hi there, try this CSS: .main-navigation ul li.menu-item-float-right a { padding-left: 15px; padding-right: 15px; } December 4, 2018 at 3:47 am #747576 Jesús wow, this work! Thank you! 🙂 December 4, 2018 at 4:37 am #747606 DavidStaff Customer Support You’re welcome. Glad we could be of help. Author Posts Viewing 12 posts - 1 through 12 (of 12 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In