main.css stylesheet changes don't show.

Permalink Browser Info Environment
I tried to change the background color of the footer in main.css and it does not change - cleared cache and browser cache - tried it on several browsers.

When I do firebug inspection of the footer it appears that the main,css in the files/cache/css/slate/main.css is overriding the css. Also I now get a PHP error when trying to clear the cache ( see below )

Warning: rmdir(/Applications/MAMP/htdocs/Cruise-in2013/concrete5.6.1.2/files/cache/css) [function.rmdir]: Directory not empty in /Applications/MAMP/htdocs/Cruise-in2013/concrete5.6.1.2/concrete/core/helpers/file.php on line 99

Warning: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/Cruise-in2013/concrete5.6.1.2/concrete/core/helpers/file.php:99) in /Applications/MAMP/htdocs/Cruise-in2013/concrete5.6.1.2/concrete/core/libraries/controller.php on line 368

Not sure how to fix this.

Thanks in advance Jim Robinson

Type: Discussion
Status: In Progress
INTcommunications
View Replies:
c5mix replied on at Permalink Reply
c5mix
Yeah, that cached main.css file is still overriding the other main.css file. Not sure what that error could be. I would recommend doing a search in the general forums or bugs section and see if anyone else has experienced it as well.
INTcommunications replied on at Permalink Reply
INTcommunications
I have a feeling that the footer background color is being cached from somewhere else - I have made changes all over the main.css and all of the changes appear but the footer keeps the BG #444. I think that it must be over riding any changes I make to the footer in main.css cache. !important makes no different.

Jim
c5mix replied on at Permalink Reply
c5mix
Did you try changing the footer background color in the theme customization panel? Go to Dashboard->Pages and Themes and click Customize next to Slate.
INTcommunications replied on at Permalink Reply
INTcommunications
Tried that - I ended up giving the footer a footerBG class in the main.css then adding the class="footerBG" to the footer tag. I wanted a gradient anyway. I posted the project to a folder on the site that I am changing.http://www.langleycruise-in.com/newsite/...
It is a site that I look after for charity and using Concrete5 will make it easier for me to delegate sections for others to edit content.

Not sure why the blog doesn't seem to work. It must be storing a path somewhere that is not a relative path and it doesn't resolve after relocating the site from my computer to the server. Anyway still playing with it.

Thanks for your help
JIm
phocks replied on at Permalink Reply
phocks
I believe I was having a similar issue. I was modifying the main css file, but no changes were appearing because the browser was pulling the css from the cache.

I managed to fix it in my case by modifying the packages/theme_slate/themes/slate/elementsheader.php file:

<link rel="stylesheet" media="screen" type="text/css" href="<?php  echo $this->getStyleSheet('typography.css')?>" />
<link rel="stylesheet" media="screen" type="text/css" href="<?php  echo $this->getStyleSheet('main.css')?>" />


to

<link rel="stylesheet" media="screen" type="text/css" href="<?php  echo $this->getThemePath(); ?>/typography.css" />
<link rel="stylesheet" media="screen" type="text/css" href="<?php  echo $this->getThemePath(); ?>/main.css" />
c5mix replied on at Permalink Reply
c5mix
Or you could just clear the site cache after making the changes.
http://www.concrete5.org/documentation/using-concrete5/dashboard/sy...

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.