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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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   671 Views

Avatar
Voodoo Priest

Community Member, 32 Posts

31 August 2012 at 4:58am

Hi,

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.

Avatar
Willr

Forum Moderator, 5523 Posts

2 September 2012 at 2:45pm