php - Wordpress ACF field into a stylesheet -
Therefore, I have set a custom post type for the theme settings, and edit a custom field from there for the background color.
The script reads style.php styles, as long as I'm not trying to get the field value.
Here is a piece of code that I am trying to work on
html, body {background-color:
Source, background color value is only empty.
When you work with the ACF options page, you will see a string "option" function For the parameter get_field () and the_field ()
try
html, body {background-color: & lt; Php the_field ('page_background_color', 'option') ;; & Gt ;;}
Comments
Post a Comment