Using Meta Box Color Picker to Set Global Colors for Oxygen Builder

In this video I cover how to add a Meta Box Settings Page, and add two color picker fields. Next we take those field outputs to create CSS variables that we can add into Oxygen Builder’s Global Color pallet. This is done without any of Oxygen and Meta Box direct integration. It does require a little bit of code to generate the CSS variables but I have a link to a GitHub Gist below with the code, just swap out the necessary data and duplicate to get the desired number of color variables.

Link to code:
https://gist.github.com/localsbm/1a12b283b4e30181ba3c85657577847e

 

Leave a Reply

Your email address will not be published. Required fields are marked *