Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

How can I add CSS ids and classes to content text?

Go to End

2 Posts   599 Views

Voodoo Priest

Community Member, 32 Posts

31 August 2012 at 4:58am


I am using SilverStripe to publish content on my website which is basically a blog. I'd like to format certain bits of text in a specific way so as to, for instance, add a Wikipedia-like external link image to some <a> tags or add a class to <span> tag so that the text can have a dotted underline. For that, I'm used to using CSS.

The problem is that when I enter text on new pages, I don't see anywhere a possibility to switch from the WYSIWYG rendering to a Source rendering in order to edit the HTML tags and add the CSS identifiers that I want to add. I've read the help documentation, including Creating and editing content page but there' no mention of it in there.

Thank you for your help.


Forum Moderator, 5523 Posts

2 September 2012 at 2:45pm