We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16905
    • 46 Posts
    Can someone please explain to me from start to finish how to load my CSS into Modx? I feel like I have tried everything (CSS Selector etc), and yet they still are not showing up in my Text Editor. I am a newbie to ModX and CMS in general. I have been back and forth on forums for hours, I am at my wits end. I think I really just need a dummy’s version for installing my CSS.

    Sorry. Can anyone help me, please????
      • 23299
      • 1,161 Posts
      I am very new to this myself...

      When you installed MODx there will be a folder called Templates. If you create a new template it will have its own folder (with the name you give it) within the Templates folder. You can add sub folders for css and images.

      If you are trying to add CSS to the TinyMCE editor then see this post I started:http://modxcms.com/forums/index.php/topic,21255.0.html

      Hope this helps...

      Max
        • 16905
        • 46 Posts
        Not exactly sure what I did different, but it is working! Thanks!
          • 15001
          • 697 Posts
          You can add your CSS to TinyMCE from the Tools -> Configuration -> Interface & Features tab.
          Just link the stylesheet by setting the "Path to CSS file" field.

          I discovered that one can also alias CSS styles by setting the "CSS Selectors" field on the same tab.
          Like this:Largeur 30%=w30p
          where "Largeur 30%" is here the style name to display and w30p the real class name.
          But strangely then, all non-aliased styles are no more available from the drop list.
          Is there a way to alias class names from a stylesheet and still list unaliased style names ?