Adding options to customiser


p k

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.

Thanks,


Hi PK and welcome to Beans Community πŸ™‚

Here is the steps I would take to achieve it:

  1. Add select option with your fonts list in the customizer using Beans Fields API.
  2. Enqueue the font using basic WP enqueue.
  3. 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 πŸ™‚

Thanks,


Write a reply

Login or register to write a reply, it's free!