Title: Using csscolor.php
Last modified: August 18, 2016

---

# Using csscolor.php

 *  [headelf](https://wordpress.org/support/users/headelf/)
 * (@headelf)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/using-csscolorphp/)
 * 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/](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)

 *  [Root](https://wordpress.org/support/users/root/)
 * (@root)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/using-csscolorphp/#post-509503)
 * Just put your php call doodad in the index.php.
 *  [DianeV](https://wordpress.org/support/users/dianev/)
 * (@dianev)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/using-csscolorphp/#post-509505)
 * Would you not need it in the header.php?
 *  [Doodlebee](https://wordpress.org/support/users/doodlebee/)
 * (@doodlebee)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/using-csscolorphp/#post-509507)
 * 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.

## Tags

 * [call](https://wordpress.org/support/topic-tag/call/)
 * [custom](https://wordpress.org/support/topic-tag/custom/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 3 replies
 * 4 participants
 * Last reply from: [Doodlebee](https://wordpress.org/support/users/doodlebee/)
 * Last activity: [19 years, 4 months ago](https://wordpress.org/support/topic/using-csscolorphp/#post-509507)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
