Hi guys how would you go about adding google fonts choices to the WordPress customiser? I would like to be able to switch between different fonts on the fly in the customiser.
Hi PK and welcome to Beans Community 🙂
Here is the steps I would take to achieve it:
- Add select option with your fonts list in the customizer using Beans Fields API.
- Enqueue the font using basic WP enqueue.
- Dynically set the UIkit global font variables using the Beans compiler API.
This is the approach I would take which would be fairly simple but requires some understanding of the framework. I am happy to help if you get stuck or if you don't know where to start 🙂
Here is another discussion with more information/example to set dynamic LESS variables based on customizer settings.