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.

Content Editor Discussions /

Forum for content editors and CMS users.

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

Css inside Content


Reply


2 Posts   904 Views

Avatar
pinkfloydim

Community Member, 5 Posts

24 April 2013 at 5:27pm

I have some html code, which has some css.
This css is inside the themes folder.
How can I apply the styles when the site renders, as currently not working.

Would be cool to see it styles inside the editior too?

Avatar
Webdoc

Community Member, 332 Posts

25 April 2013 at 3:56am

Add in your themes/theme-name/templates/Page.ss
those lines:
<% require themedCSS(layout) %>
<% require themedCSS(typography) %>
<% require themedCSS(form) %>
If your style css file is called style.css and its in themes/theme-name/css folder add line:
<% require themedCSS(style) %>

your theme can u change in mysite/_config.php file using line:
SSViewer::set_theme('theme-name');

Arvixe Web Hosting / SilverStripe Community Liaison | Looking for quality [url=http://www.arvixe.com/preloaded_silverstripe_hosting/]SilverStripe Web Hosting[/url]? Look no further than [url=http://www.arvixe.com/]Arvixe Web Hosting[/url]!