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

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -