Hi all,
If the title for my blog is "BlogTitle" (one word) and I want "Blog" to be green and "Title" to be red, how would I go about doing this? With HTML I'd just add a span class, but being a PHP noob I have no idea.
Thanks,
William
Hi all,
If the title for my blog is "BlogTitle" (one word) and I want "Blog" to be green and "Title" to be red, how would I go about doing this? With HTML I'd just add a span class, but being a PHP noob I have no idea.
Thanks,
William
i used this on a site, which just wraps certain parts of my title in spans:
function childtheme_override_blogtitle() {
$t = get_bloginfo('name');
$t = str_replace('for','<span class="for">for</span>',$t);
$t = str_replace('Weight Training','<span class="weight">Weight Training</span>',$t);
$t = str_replace('Women Today','<span class="women">Women Today</span>',$t);
if (is_home()) { ?>
<h1 id="blog-title" class="clearfix"><a href="<?php bloginfo('url') ?>/" title="<?php bloginfo('name') ?>" rel="home"><?php echo $t; ?></a></h1>
<?php } else { ?>
<h3 id="blog-title" class="clearfix"><a href="<?php bloginfo('url') ?>/" title="<?php bloginfo('name') ?>" rel="home"><?php echo $t; ?></a></h1>
<?php }
}This is pretty cool: http://letteringjs.com/
me like.
This topic has been closed to new replies.