| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Add emphasis to category heading in smarty | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Add emphasis to category heading in smarty
Hello,
Just looking for some guidance on how to add in some em tags within smarty In my template is the following code: Code:
What I would like to do, is detect whether the title is more than one word, and if it is wrap the subsquent words in em tags, so I can style them different. So for example this is what i want to achieve: HTML Code:
I tried to write some code using the same syntax as the rest of the smarty template, like so: Code:
However this actually doesn't work, so I was wondering if it is possible to do what I want and if so how would I do that?? Many Thanks!!! Christine
__________________
X-Cart Version 4.4.1 |
|||||||
#2
|
|||||||||
|
|||||||||
Re: Add emphasis to category heading in smarty
You can use this method which acts similar to a split:
Code:
|
|||||||||
|
|||
X-Cart forums © 2001-2020
|