Hi I recently started to re-style a page which uses CMSmadesimple.
I have no experience in using CMSms
and Smartytags
.
but there are some smartytags
on the page which need styling.
for example this tag {$entry->morelink}
. I need to be able to add this .link
CSS class to it.
I have tried everything that I have thought of but nothing seems to work. I have also googled around with out a luck.
I hope there is someone out there that have the experience and knows how to add .class to Smarty tag.
This question was asked many times in CMS Made Simple community forums.
Try using Smarty replace variable modifier, for example:
In case there is no class attribute on given string, you could stick to replacing id or even closing
>
.It's messy solution but will work. It's better to change initial object.