Not moving anything around too much, though I’ve been getting tired of the strange dirt red that was there previously. Instead, I went back to an older idea in my site before, whereby I have a few colors, one of which is selected at random and used for the header background. I may add in more colors as time goes on, though for the time being I’m sated.
WordPress/PHP code
This isn’t rocket science, though in the case that other people want to do the same, here’s what I have. Please adapt to fit in with whatever schemes you have in your site:
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<?php $header_colors = array('rgb(111,111,111)', 'rgb(222,64,0)', 'rgb(0,111,222)');
$header_color = $header_colors[array_rand($header_colors)]; ?>
<style type="text/css">
#header {background-color:<?php echo $header_color; ?>;}
</style>
Add to / subtract from the $header_colors array to make changes to the set of colors which are randomly selected. Nothing too complicated here, but it can spice things up a bit without too much work.
Tags: wordpress