Jump to:

521 Posts in 248 Topics by 263 members

Content Editor Discussions

SilverStripe Forums » Content Editor Discussions » Css inside Content

Forum for content editors and CMS users.

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

Page: 1
Go to End
Author Topic: 896 Views
  • pinkfloydim
    Community Member
    5 Posts

    Css inside Content Link to this post

    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?

  • Webdoc
    Community Member
    332 Posts

    Re: Css inside Content Link to this post

    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:

    Arvixe Web Hosting / SilverStripe Community Liaison | Looking for quality SilverStripe Web Hosting? Look no further than Arvixe Web Hosting!

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.