Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
sashkernel CreditAttribution: sashkernel commentedSorry, 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.
Comment #2
valery86 CreditAttribution: valery86 commentedHi 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?
Comment #3
hamish_s CreditAttribution: hamish_s commentedValery,
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,
Comment #4
valery86 CreditAttribution: valery86 commentedIt works!
Thank you so much! I didn't realize about the ";"
Thanks Hamish!
Comment #5
djsagar CreditAttribution: djsagar at OpenSense Labs commented