Join us for EEConf 2023, October 4-5 in Orlando. Speakers. Networking. Community powered. Awesome.

Join us for EEConf 2023, October 4-5 in Orlando.

Register Now!

We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

CSS Not loading

News and General

Matahi's avatar
Matahi
18 posts
4 months ago
Matahi's avatar Matahi

I have a problem with CSS loading. They work when the template is the index but not in the rest. I have checked all the paths and they are correct. I have also uploaded an html version of the pages and they work.

Any ideas?

       
lincolnpixel's avatar
lincolnpixel
83 posts
4 months ago
lincolnpixel's avatar lincolnpixel

Hi Matahi,

              Can you share a little more of the code that you’re using ?
       
Matahi's avatar
Matahi
18 posts
4 months ago
Matahi's avatar Matahi

Hi, Lincolnpixel

This is the test-page i am working on:

https://sabbastudio.com/es/pagina

       
lincolnpixel's avatar
lincolnpixel
83 posts
4 months ago
lincolnpixel's avatar lincolnpixel

A quick look at the html source, can see that your custom css stylesheet

https://sabbastudio.com/index.php?css=css_styles/custom.v.1683972131

have the index.php

Are you removing index.php from urls?

       
Matahi's avatar
Matahi
18 posts
4 months ago
Matahi's avatar Matahi

Yes, I removed the index.php but the custom stylesheet is the same as the main stylesheet wich loads correctly. In fact, both of them load correctly but do not render.

       
lincolnpixel's avatar
lincolnpixel
83 posts
4 months ago
lincolnpixel's avatar lincolnpixel

Kindly share your template tag, at least the one you’re using for the stylesheet.

       
Matahi's avatar
Matahi
18 posts
4 months ago
Matahi's avatar Matahi
<link rel="stylesheet" href="/components/base/base.css">
       
lincolnpixel's avatar
lincolnpixel
83 posts
4 months ago
lincolnpixel's avatar lincolnpixel

While the one for the Custom Css?

       
Matahi's avatar
Matahi
18 posts
4 months ago
Matahi's avatar Matahi

The custom css is empty. I am getting multiple “The stylesheet was not loaded because its MIME type, “text/html” is not “text/css” errors in the developer console. But not when the same template is marked as the Index page.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.