Another day, annoying clients, more code to learn...
So yesterday I stopped by the spa client on the way home from the gym to meet the latest person in charge of the spa. She tells me that her boyfriend is an awesome designer and will be designing a new logo and headers for the spa's website but right now he doesn’t have time to do any of this. (oh great, now a boyfriend added to the mix) Then she asked me if a different header image can be used on different pages of the site. I say sure no problem not having the slightest idea how to do it.
Spent half the night figuring out how to do different header images on different pages. Turns out that the header image is called up from the stylesheet and you can pull up different stylesheets for each page by putting if, else in the header.php file.
Being able to run Wordpress on my laptop makes trying things so much quicker and easier.
Code:
<?php
/*
This allows different style sheets
calling up different header images
for different pages
*/
if ( is_page('test2') ) { ?>
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/style2.css" type="text/css" media="screen" />
<?php } elseif ( is_page('test3') ) { ?>
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/style3.css" type="text/css" media="screen" />
<?php } else { ?>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<?php } ?>
Finally right after I've learned how to do this I get a bunch of emails from her with templates that she would like to use instead of the template I made. Would be no problem except all the templates she likes are Flash Moto CMS templates.
Now I have to convince her that an all Flash website is not the way to go. Not to mention that I don't do Flash and have no interest in learning a dying tech.
(actually I learned Flash something like 10 years ago before Adobe bought it)
Just a day of doing adult stuff until I'm once again distracted by a mainstream stuff.
