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.

General Questions

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

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

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


2 Posts   318 Views


31 August 2012 at 4:58am Community Member, 22 Posts


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 [url=]Creating and editing content page[/url] but there' no mention of it in there.

Thank you for your help.


2 September 2012 at 2:45pm Forum Moderator, 5511 Posts

The HTML button is in TinyMCE ( fourth from right, second row.