Posted by timnext on September 7, 2011 at 9:32pm
I would like to style the site name with two different styles. (i.e. Site Name) "Site" would be a large bold font and "Name" would be a smaller normal font. I tried splitting it into site name and site slogan which would allow me to style them separate but reverted due to an SEO compromise and split link. Any suggestions?
Comments
regex or explode()
In template.php within the THEME_preprocess_page() function, you can either:
@dcmouyard on Twitter
Will investigate.
Thanks for the tip. I will have to investigate these options as I have limited php skills.
...and if you're not a php guru
You got use a simple CSS image replacement technique.
For example, design your logo/site name with appropriate style in photoshop (or whatever you use).
Save it as an image, upload it, then use CSS to indent the site name text and replace with image u created.
The link and text for screen reader etc would remain intact.
... Again... This approach is assuming you know css as opposed to php.
Cheers
:)
P.s you could also edit the page.tpl.php , hard code the site name and wrap it in seperate HTML tags. Another none coding approach.
Dynamic Site Name
Yes, I have considered that option but wanted to keep the site name dynamic for different reasons. Thanks anyway.