Using csscolor.php (4 posts)

  1. headelf
    Posted 9 years ago #

    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.



  2. Root
    Posted 9 years ago #

    Just put your php call doodad in the index.php.

  3. DianeV
    Posted 9 years ago #

    Would you not need it in the header.php?

  4. Doodlebee
    Posted 9 years ago #

    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 ;) )

Topic Closed

This topic has been closed to new replies.

About this Topic