split $blogTitle or $entry.title into two
Posted: Thu Aug 17, 2006 6:42 am
Hi, I want to split $blogTitle or $entry.title at a word boundary so that I can wrap a span around the one of them. This would allow me to style the bit with the span with a different color or font size. Ideally I would like to be able to take the blog title/entry title and place the span after the second word, so the new html might look like this
this is <span> my new blog title </span>
Is this possible? The guys at the smarty forums have suggested creating a function or using modifiers but how do I do that?
Thanks, Carl
this is <span> my new blog title </span>
Is this possible? The guys at the smarty forums have suggested creating a function or using modifiers but how do I do that?
Thanks, Carl