I have a plugin meta box (in the Wordpress admin) with the following fields and values:
Name of the div class selector= featured_content
Font family= Verdana
Font color= #000
They are stored in the Wordpress post meta table.
In the Wordpress front end, one of the content template has this div:
<div class="featured_content"> The quick brown fox jumps over the lazy dog. </div>
How would I communicate with the Wordpress front end from my Wordpress meta box settings for that div? So that when the page is loaded containing the div class selector name of "featured_content", proper styling would be implemented based on the backend meta box settings.
I am thinking of running a JS code to scan all id and class selectors then query via AJAX to retrieve the settings and implement them, but I'm not sure if this is the best way.
Thank you for any tips.