Formatting 'Blog Description' content

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
julianhopkins
Regular
Posts: 17
Joined: Tue Mar 18, 2008 4:07 am
Location: Malaysia
Contact:

Formatting 'Blog Description' content

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Formatting 'Blog Description' content

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
julianhopkins
Regular
Posts: 17
Joined: Tue Mar 18, 2008 4:07 am
Location: Malaysia
Contact:

Re: Formatting 'Blog Description' content

Post 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.
julianhopkins
Regular
Posts: 17
Joined: Tue Mar 18, 2008 4:07 am
Location: Malaysia
Contact:

Re: Formatting 'Blog Description' content

Post 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 :)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Formatting 'Blog Description' content

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
julianhopkins
Regular
Posts: 17
Joined: Tue Mar 18, 2008 4:07 am
Location: Malaysia
Contact:

Re: Formatting 'Blog Description' content

Post 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
Post Reply