Hi,
I'm trying to modify colors in Grid system, but I don't want to modify parent them css since they can be overwritten during update. I copied grid_1000.css "marinelli\css\grid" to "subtheme\css\grid" but apparently there is something else I have to change in order for the theme to pick up right css.

Could anyone advise which file I need to modify?

Regards,
Sash

Comments

sashkernel’s picture

Sorry, forgot to mention. I worked around this by adding this css to sub_theme.info file. Not sure if this is correct way of doing it.

valery86’s picture

Priority: Major » Normal

Hi sashkernel,

I have tried your workaround in order to change the sidebar sizes, but it does not work for me. I added this code

";stylesheets[all][] = css/grid/grid_1000.css" to my sub_theme.info file.

Do I need to do anything else? I cleared caches before checking changes done in "grid_1000.css" but nothing changes on my website, I checked with firebug and it confirmed that nothing changed.

Can you help me out please?

hamish_s’s picture

Valery,

I consider myself still a noob with drupal, toughing it out when i cant figure things out. However, i did learn that you need to remove the ";" (the semi-colon) to enable the call to the appropriate css file in your subtheme.info file. So, in your .info file, remove the ";" before the appropriate stylesheet, and the subtheme.info file will call the required grid_1000.css file.

However, I still do not think that will solve your problem. You need to also copy over the folder with its two files, and change the layout.inc file in that folder to call different of the grid "cases". When you open up the layout.inc, you will see defaults, you can change these to reflect the widths you want. You will then be abl to change the defaults in the grid file if they are not exactly what you want.

Please report back here your successes and any other questions - we can help each other out.

Thanks,

valery86’s picture

It works!

Thank you so much! I didn't realize about the ";"

Thanks Hamish!

djsagar’s picture

Issue summary: View changes
Status: Active » Reviewed & tested by the community