I have been making all of my css changes in the style.css file; however, I just noticed the local_sample.css file and would like to transfer my changes to that file. I followed the steps outlined at the top of local_sample.css but I have a few questions on how to use this file.

1) Should I be able to just copy and paste my changes from style.css into the newly created local.css?
2) Or, do I need to rename the classes/id's in the local.css file and change them in the php files as well?
3) Is it even worth messing with?

Comments

danpros’s picture

Hi,

Until version 1.9 you just need to copy all changes you made to local.css, but from version 1.10 (latest version); you must change the image name in your local.css (compare each version of Danland then you will notice what images are changed).

Since version 1.10, I changed most of the images for easy to modify (i.e. banner size).

schroepl’s picture

What about for changes to tags, divs, etc. For example, I changed the size of h1 in style.css but I want to make the change in local.css instead. When I made this change it was not reflected on the site until I commented out the h1 entry in style.css. So, my question is, if I am making changes like that do I need to comment out/remove the entries in style.css or should I rename my changes to those styles in local.css and change the corresponding class/id calls in the php files (i.e. if I want to alter #header, copy and paste it into local.css name it #headerNew and then change id="header" to id="headerNew" in php files.)

danpros’s picture

Yes if you change the php file then you must change the corresponding class or id calls in CSS. If you using the local.css and for example you want change the h1 font size, you just set the h1 font size in local.css so the style.css value will ignored.

Do not optimize the CSS if you still change the CSS to your desired, and dont forget clearing the cached data.

danpros’s picture

Status: Active » Closed (fixed)

Hi,

I'll close this, re-open if you need more helps.

Thanks,