E.g. change ‘MY BLOG TITLE’ to ‘My Blog Title’ for all my blog titles
Changing them all manually would take far too long. Thought someone on here might know a quick solution with Serendipity.
Thanks for any suggestions
Code: Select all
text-transform:capitalize;... if your entry title is in fact a h1.sonichouse wrote:The easiest/quickest way is to edit your stylesheet and addto your h1.Code: Select all
text-transform:capitalize;
Code: Select all
.serendipity_title { text-transform: capitalize; }Thanks sonichouse. However the title remains the same when I add that to the CSS file.sonichouse wrote:The easiest/quickest way is to edit your stylesheet and addto your h1.Code: Select all
text-transform:capitalize;
Code: Select all
#serendipity_banner h1 {
text-transform:capitalize;
}Hi Yellowled thanks.yellowled wrote:... if your entry title is in fact a h1.sonichouse wrote:The easiest/quickest way is to edit your stylesheet and addto your h1.Code: Select all
text-transform:capitalize;
It really depends on your template, but usually
is more likely to work.Code: Select all
.serendipity_title { text-transform: capitalize; }
YL
Can you post a link to your site ?Maccsta wrote:However because my title is all caps already using capatalize will have no effect. I was wanting the title in title case ie 'My Blog Title' not 'MY BLOG TITLE'
Code: Select all
capitalize:trueCode: Select all
<title>{$head_title|@default:$blogTitle|capitalize:true} {if $head_subtitle} - {$head_subtitle|capitalize:true}{/if}</title>You can simply change the blog title in your admin backend. "Administration/Configuration" -> "General settings" -> "Blog name" (and optionally "Blog description").Maccsta wrote:I was wanting the title in title case ie 'My Blog Title' not 'MY BLOG TITLE'
Thanks sonichouse. Only just come back to this because these changes weren't top priority, but I was able to achieve what I wanted with:sonichouse wrote:Can you post a link to your site ?Maccsta wrote:However because my title is all caps already using capatalize will have no effect. I was wanting the title in title case ie 'My Blog Title' not 'MY BLOG TITLE'
Might be easier to diagnose
You may need to edit the index.tpl to addas a smarty modifier to the title block - although I haven't tested this myself.Code: Select all
capitalize:true
e.g.Code: Select all
<title>{$head_title|@default:$blogTitle|capitalize:true} {if $head_subtitle} - {$head_subtitle|capitalize:true}{/if}</title>
Code: Select all
<title>{$head_title|@default:$blogTitle|lower|capitalize:true} {if $head_subtitle} - {$head_subtitle|lower|capitalize:true}{/if}</title>No problem, glad it helped, looks like you have hit the nail on the headMaccsta wrote:Thanks sonichouse. Only just come back to this because these changes weren't top priority, but I was able to achieve what I wanted with:
I added "lower" smarty command and was able to turn the title to lowercase and "capitalize" gave me title case.Code: Select all
<title>{$head_title|@default:$blogTitle|lower|capitalize:true} {if $head_subtitle} - {$head_subtitle|lower|capitalize:true}{/if}</title>
Thanks again