We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 45581
    • 4 Posts
    Hi,

    testing MODx right now - everything is fine so far. Except that MODx converts my stylesheets from <link rel="stylesheet" href="/assets/css/style.css" /> to <style>...</style>. Is there a way to prevent it?

    Thanx!
      • 42046
      • 436 Posts
      Are you placing the stylesheet link in a template or the body content?
        • 45581
        • 4 Posts
        I've placed it in the template in the header... When I link a stylesheet file from another subdomain, MODx does not convert it to inline <style>...</style> inside the header...
          • 3749
          • 24,544 Posts
          MODX itself will never touch straight CSS or HTML and it definitely doesn't create any inline styles. I'm not sure what's happening, but I'm sure it's not MODX that's doing it. It could possibly be a MODX extra (add-on component) that's installed, but I don't know of one that would do that.
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting
            • 45581
            • 4 Posts
            Quote from: BobRay at Nov 01, 2013, 05:32 PM
            MODX itself will never touch straight CSS or HTML and it definitely doesn't create any inline styles. I'm not sure what's happening, but I'm sure it's not MODX that's doing it. It could possibly be a MODX extra (add-on component) that's installed, but I don't know of one that would do that.

            Thanx for the info. I will try a fresh install without any add-on components.
              • 45581
              • 4 Posts
              Now it works... Made a fresh install and everything works fine laugh