Thought i would share this with everyone
Adding this to your page template or seperate php file allows you to make custom fields that end users can change the css like background image or colour , logo, text colour and many more
<?php
header("Content-type: text/css; charset: UTF-8");
?>
.font-colour{
color:<?php the_field('font-colour'); ?>;
}
.bg-image {
background-image:url("<?php the_field('bg1'); ?>");
}
You forgot to mention if used as a seperate php file, how does one get WP to recognize it?