Hi all,
You know what gets my goat? When you can't find the vars you're looking for. For those that got the reference - :o))
This is my header image code:
<a href="http://rationalbritain.org/" title="Home (RationalBritain)" rel="home"><img src="<?php bloginfo('template_directory') ?>/img/header/headerimage.jpg"></img></a> <!-- ToDo: change href & title to vars - [$james - 14/2/09 @ 14:28] -->
<br />
<?php global $blog_id ?> <!-- declare blog var for conditional below - [$james - 14/2/09 @ 14:00] -->
<?php if ($blog_id !=1) { ?> <!-- conditional for blog description display - [$james - 14/2/09 @ 14:00] -->
<strong id="blog-title"><a href="<?php bloginfo('url') ?>/" title="Home (<?php bloginfo('name') ?>)" rel="home"><?php bloginfo('name') ?></a></strong>
<?php } ?> <!-- /conditional - [$james - 14/2/09 @ 14:00] -->
<p id="blog-description"><?php bloginfo('description'); ?></p>
Hopefully you see what I'm doing - Main domain image at top of header, links to home of main blog; description text of current blog below, links to home of current blog.
I want to replace the href and title attributes with the relevant vars - this template will be rolled out to a few domains, and I don't want to be hard-coding links and domain names each time.
$domain returns the current blog domain - with subdomain. I simply want the var for the main domain, whatever blog is being viewed.
I can't find the current blog title var either - am I just being blind?
Thanks in advance.