Page 1 of 1

Formatting 'Blog Description' content

Posted: Tue Dec 16, 2008 12:56 pm
by julianhopkins
Hello, I'd like to format the text in the 'Blog description' field, and have tried doing this:
<em>anthropo</em>, blogs & <em>–logia</em>: humans, blogs and the study of…

but the html tags also appear on the blog header.

I'm using the Andreas09 template with Serendipity 1.3.1

How can I put some of the words in the 'Blog description' in italics?

thanks,
Julian

Re: Formatting 'Blog Description' content

Posted: Tue Dec 16, 2008 1:22 pm
by garvinhicking
Hi!

Yes, the blogdescription is not meant to hold HTML code. If you want to place custom HTML there, please edit the index.tpl template file of your selected template and place the text there, this is actually the only way to deal with this.

Best regards,
Garvin

Re: Formatting 'Blog Description' content

Posted: Tue Dec 16, 2008 3:13 pm
by julianhopkins
Thanks :) That solved it! Much appreciate the rapid response. I have been using this forum for long time now, but it's the first time I had to ask a question.

Re: Formatting 'Blog Description' content

Posted: Tue Feb 24, 2009 12:09 am
by julianhopkins
Hi it's me again, actually I'd like to return to this question - it seems that I did something wrong (I'm no expert at these matters) :|

It looks fine when I am in the main blog area (i.e. the one you see when you go to http://www.julianhopkins.net). It looks like this
anthroblogia
anthropo, blogs & –logia: humans, blogs and the study of…
but when you view a blog post with a permalink,
Why I don't like Vista [--> this is the title of the post]
anthroblogiaanthropo, blogs & –logia: humans, blogs and the study of… [--> 'anthroblogia' and 'anthropo' are jammed together which is not nice.]
This is how I inserted the html-formatted sub-header, I assume I did something wrong there.

<div id="serendipity_banner">
<h1><a href="{$serendipityBaseURL}">{$head_title|@default:$blogTitle|truncate:60:" ...":false}</a></h1>
<h2>{$head_subtitle|@default:$blogDescription}<em>anthropo, blogs & –logia</em>: humans, blogs and the study of... </h2>
</div>

thanks for your help :)

Re: Formatting 'Blog Description' content

Posted: Tue Feb 24, 2009 9:28 am
by garvinhicking
Hi!

Try this instead (assuming that your blogDescription is empty!)

Code: Select all

<div id="serendipity_banner">
<h1><a href="{$serendipityBaseURL}">{$head_title|@default:$blogTitle|truncate:60:" ...":false}</a></h1>
<h2>{if $head_subtitle != ''}{$head_subtitle}<br />{/if}<em>anthropo, blogs & –logia</em>: humans, blogs and the study of... </h2>
</div>
HTH,
Garvin

Re: Formatting 'Blog Description' content

Posted: Tue Feb 24, 2009 11:32 am
by julianhopkins
Thanks :D That works! I can see you put in a logic question thing, but I wouldn't know how to do that...

Thanks again for the rapid response, it's really appreciated :D