- This topic has 9 replies, 2 voices, and was last updated 2 years, 7 months ago by
David.
-
AuthorPosts
-
April 3, 2019 at 9:06 pm #858972
Michael
I’m not sure if there is documentation for this, I found something relating to the free version of FA but it’s not really what I need.
I need to install FA5 Pro into the child theme for a particular site rather than use the Pro CDN.
I’ve created a folder in the child theme which as a folder /fonts/fontawesome/css/ with a file in there all.css (or all-min.css)
Do you have a gist to enqueue this and dequeue the free FA5 that is in theme?
thanks,
GeneratePress 2.2.2GP Premium 1.7.8April 4, 2019 at 8:31 am #859645Tom
Lead DeveloperLead DeveloperHi there,
GP doesn’t include Font Awesome by default anymore. If you’re still using the old Font Awesome 4 that was in GP, you can disable it by going to “Customize > General” and checking the “Load essential icons only”.
To add your child theme file, you can add this to your child theme functions.php file:
add_action( 'wp_enqueue_scripts', function() { wp_enqueue_style( 'font-awesome-5', get_stylesheet_directory_uri() . '/fonts/fontawesome/css/all-min.css' ); } );
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentApril 4, 2019 at 12:06 pm #859834Michael
Thanks Tom, that code hasn’t worked though.
April 4, 2019 at 4:26 pm #860001Tom
Lead DeveloperLead DeveloperAre you sure the path is correct? For example, if you view the source of your website, do you see the file enqueued? If so, is the URL correct to the file?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentAugust 11, 2020 at 1:13 am #1396638Nic
hi there how to embed FA5Pro properly to show up all available icons for instance in your button block?
August 11, 2020 at 5:24 am #1396932David
StaffCustomer SupportHi there,
do you mean in GenerateBlocks ?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 11, 2020 at 5:50 am #1396964Nic
i mean somewhere here:
August 11, 2020 at 6:18 am #1397008David
StaffCustomer SupportGenerateBlocks only uses inline SVGs – you can add whatever icon you like to the field provided. And it will probably even accept the FA Icon HTML ( may be )
One of the future features of the coming soon GenerateBlocks Pro will be the ability to edit the SVG library so icon packs can be easily installed – but it won’t be using a Font library CSS or JS methods that FA uses due to the terrible performance impact.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 11, 2020 at 6:24 am #1397020Nic
agree with the FA kits… don’t like them too! would be nice to upload a package of FA pro subsetted fonts. i am excited… thanks in advance
August 11, 2020 at 6:47 am #1397061David
StaffCustomer SupportYou’re welcome ( just as excited 🙂 )
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.