juggledad thanks for a great tutorial.
For those that want 'multiline' taglines, I went one stage further, in this exampel I use |cr| as my delimiter in the tag line, though you could edit the code to use anything you like, so my tagline looks like this:
line 1|cr|line 2|cr|line 3|cr|line 4
and prints out like
line 1
line 2
line 3
line 4
so here is my code: (all comments appreciated!)
at line 205 change to:
HTML Code:
if ( $bfa_ata['blog_tagline_show'] == "Yes" ) {
// echo '<p class="tagline">'; bloginfo('description'); echo '</p>';
echo '<p class="tagline">';
$tag_title= get_bloginfo('description');
$tag_title_lines = explode("|cr|", $tag_title);
$i=0;
while($i < count($tag_title_lines)) {
echo $tag_title_lines[$i];
$i++;
if ($i < count($tag_title_lines)) {
echo "<br />";
}
}
echo '</p>';
}
and at line 342 change to:
HTML Code:
if ($bfa_ata['overlay_blog_tagline'] == "Yes") {
// echo '<p class="tagline">'; bloginfo('description'); echo '</p>';
echo '<p class="tagline">';
$tag_title= get_bloginfo('description');
$tag_title_lines = explode("|cr|", $tag_title);
$i=0;
while($i < count($tag_title_lines)) {
echo $tag_title_lines[$i];
$i++;
if ($i < count($tag_title_lines)) {
echo "<br />";
}
}
echo '</p>';
}
there is probably a neater way to suppress the final "<br />" however it's late here and brain is half asleep! - see it in action here:
http://worcesterrenewables.co.uk
Hope it helps,
Best Regards, Gordon aka The Digital Geek.