Jump to:

1382 Posts in 491 Topics by 521 members

Themes

SilverStripe Forums » Themes » How to work around the default CSS files?

Discuss SilverStripe Themes.

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

Page: 1
Go to End
Author Topic: 1497 Views
  • Brig
    Avatar
    Community Member
    26 Posts

    How to work around the default CSS files? Link to this post

    Hello

    I've just started using SilverStripe and I really like the CMS part of it. The template development however seems a bit awkward.
    I can't figure out how to work around the default CSS files that always gets loaded into the page.ss file for example.

    typography.css, layout.css and form.css get automatically loaded into the page even if I removed the links to them in the ss file.

    I understand that these stylesheets have got some required styles in them for the CMS to work but when creating a new template how do people work around these to not get your site to pick up styles from these 3 stylesheets?

    Any help would be greatly appreciated.

    Thanks

  • Brig
    Avatar
    Community Member
    26 Posts

    Re: How to work around the default CSS files? Link to this post

    Forgot to add that I can edit the default CSS files to suit my needs but I suppose that that might break other things.
    Is that correct?

  • Brig
    Avatar
    Community Member
    26 Posts

    Re: How to work around the default CSS files? Link to this post

    I worked it out in the end. Just had to name all classes for the template and not leave any un-named such as body or html only.

    Working as it should now.

  • Willr
    Avatar
    Forum Moderator
    5497 Posts

    Re: How to work around the default CSS files? Link to this post

    In 2.3 I think we still have links to the default CSS files in the PHP files - in mysite/code/Page.php so that might be the cause of them loading.

    1497 Views
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.