Not loading stylesheet

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
RobM
New Member
New Member
Posts: 7
Joined: Thu Nov 25, 2010 6:39 pm

Not loading stylesheet

Post by RobM »

I am getting past frustrated.
I've been making changes to my theme and css, and suddenly the css doesnt load on my pages anymore. I undo whatever I changed, and try again, nothing showing. I then revert back to previous versions of my theme and css by copy pasting, still doesnt load. I create a new theme and stylesheet from the previous versions, it works! I change the name of a class in the css, and then click apply, the stylesheet no longer is loaded... I change the class name back.... it still doesnt load!
What the hell is going on?

Any help much appreciated! Thank you
RobM
New Member
New Member
Posts: 7
Joined: Thu Nov 25, 2010 6:39 pm

Re: Not loading stylesheet

Post by RobM »

I started another theme and stylesheet, with the latest stuff I had, and it works!
I've connected to ftp to edit the css file directly, there seems to be a css file for every time I have edited the file. Seems a bit wasteful to me, and I have to wonder if this has something to do with the problem.
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: Not loading stylesheet

Post by Nullig »

The CSS should be in the db, not a static file.

Nullig
RobM
New Member
New Member
Posts: 7
Joined: Thu Nov 25, 2010 6:39 pm

Re: Not loading stylesheet

Post by RobM »

So what are the files in tmp/cache then?
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm

Re: Not loading stylesheet

Post by Jeff »

They are the cached files, the original is in the db.
panthus

Re: Not loading stylesheet

Post by panthus »

That's usually just a matter of cache files being used, instead of the updated stuff from the database. Try clearing your browser cache and if that's not helping clear cmsms cache, too.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Not loading stylesheet

Post by Dr.CSS »

The css files you find in there are from the {cms_stylesheet} call, it makes cached versions of the style sheets in Layout > Stylesheets, so if you change the ones in tmp/cache they will just get overwritten by the ones in layout > stylesheets, so just make changes as you should in the admin part of the site not with FTP, this ain't no flat files system folks...
RobM
New Member
New Member
Posts: 7
Joined: Thu Nov 25, 2010 6:39 pm

Re: Not loading stylesheet

Post by RobM »

Ok fair enough, but it is rather problematic if when I used the admin area for editing the css it suddenly stops loading. No one has touched this subject yet.
Today and yesterday it has been fine editing via admin area, but it doesnt explain the problem the other day.

p.s Thank you for the replies
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Not loading stylesheet

Post by Dr.CSS »

If it stops showing the CSS it may have to do with folder permissions on tmp and tmp/cache, every server requires it's own set of permissions, mine is fine with 755 while other ones I work on need 777...
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm

Re: Not loading stylesheet

Post by Jeff »

Also the is the last thing to get generated. If cmsms runs into an error it will stop processing without generating the styles.

If it happens again try turning on debug mode and checking "View page source" to see if there are any errors in hidden divs.
Post Reply

Return to “Layout and Design (CSS & HTML)”