We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30262
    • 18 Posts
    Hi, I just want to know what’s exactly the:
    System Configuration->Interface & editor settings->Path to CSS file
    Because I’ve been trying it but I can’t get any result.
    What is the right way to use it?

    I have my webpage with a file called styles.css, when I write the path to that file, nothing happens. How should be written the styles in that file?

    (1)
    p{color:#FFFFFF}
    or
    (2)
    .color{color:#FFFFFF}
    <p class="color">...

    I have the page in xhtml format and I have it like (1), I want to change it to MODx, with my style sheet. But I don’t know the best way to do it.

    Thank you.
      • 33337
      • 3,975 Posts
      Quoted from MODx manager itself, where this field lives:

      Enter the path to your CSS file that you wish to use within the editor. The best way to enter the path is to enter the path from the root of your server, for example: /assets/site/style.css. If you do not wish to load a style sheet into the editor, leave this field blank.

      Hope it helps.

      regards,

      zi
        Zaigham R - MODX Professional | Skype | Email | Twitter

        Digging the interwebs for #MODX gems and bringing it to you. modx.link
      • To clarify: that’s not the site-wide CSS file, it’s only the CSS file that the Rich Text Editor uses for stying your text within its own editor window. You still need to link to your site CSS file in the head of your templates.
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
          • 30262
          • 18 Posts
          Ok, Thank you very much!
          I’ll try.