Jump to:

5521 Posts in 1734 Topics by 1223 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Making the CSS styles of a theme show in the editor

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

Page: 1
Go to End
Author Topic: 818 Views
  • JoelMurdoch
    Avatar
    Community Member
    16 Posts

    Making the CSS styles of a theme show in the editor Link to this post

    Gentlemen,

    Have been trying to get this working for about an hour and I have had enough. For such a well configured system, getting Silverstripe to show the same colours and fonts (ie: CSS) in the CMS as it does in the theme on site is frustrating in the extreme!!

    Following instructions I found online, I edited typography.css in the theme's css folder and added the following...

    .typography h1, .typography h2 {
       font-family: Arial, Helvetica, Geneva;
    font-size: 12pt;
    color: #ffcc00;
       font-weight: bold;
    }

    Viewing the source code this css is loaded, and these classes show when viewing that css file. However, the font display in the CSS remains stubbornly the same.

    Please help!!

  • Willr
    Avatar
    Forum Moderator
    5490 Posts

    Re: Making the CSS styles of a theme show in the editor Link to this post

    Viewing the source code this css is loaded, and these classes show when viewing that css file.

    Are you sure they aren't being overridden somewhere else (use the developer tools with your browser to check. Make sure you actually have a typography class on your front end template and that you have an editor.css in your theme which includes typography.css.

    818 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.