Support » Themes and Templates » Using csscolor.php

  • I would like to be able to replace the css file with a php file. Is there any way to get the themes portion of admin to recognize that the css file is actually a php file?

    I want to use the csscolor.php script at http://www.barelyfitz.com/projects/csscolor/

    I’ve got in implemented in a number of sites I’ve written, and would love to use it in conjunction with a WP template.

    Thanks.

    Nori

Viewing 3 replies - 1 through 3 (of 3 total)
  • Just put your php call doodad in the index.php.

    Would you not need it in the header.php?

    If you want to call in the php file for your stylesheet, then in your header.php file, find this part:

    <?php bloginfo('stylesheet'); ?>

    and change it to this:

    <?php bloginfo('template_directory');?>/style.php

    It will then link to your PHP and read it as a CSS file (provided, of course, you have the proper header in your css.php file so it will be read as css 😉 )

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Using csscolor.php’ is closed to new replies.