Home Forums General Issues Allowing End User To Change Css


Allowing End User To Change Css

  • 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

     header("Content-type: text/css; charset: UTF-8");
       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?

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Allowing End User To Change Css’ is closed to new replies.