Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Jan 2015
    Posts
    2
    Member #
    41227

    How can I edit Drupal CSS files & why are there .css.gz AND .css files in my folder?

    I've been handed a site to look after which uses Drupal7.
    I was wondering if anybody can explain how Drupal handles css files please.

    each css file in my css folder has a css.gz equivalent.

    eg.

    css_yex1234pot4xcv.css
    css_yex1234pot4xcv.css.gz
    css_uio65876786yiuyui.css
    css_uio65876786yiuyui.css.gz

    (whats with the random css file names?)


    In the admin section I have 'Compress cached pages' and 'Aggregate and compress CSS files' both ticked.

    Does Drupal automatically create the .css.gz files or has the previous developer added these himself?

    How can I edit an individual CSS file? I've tried both editing the .css file and uploading it to the same server location as well as Using 'power archiver' to convert an edited CSS file to a css.gz and then uploading. On both occasions when I clear the site cache and browser cache and reload my site none of my edits are show up in the served css file.
    cssgz.jpg

  2.  

  3. #2
    Senior Member Andrew Yurlov's Avatar
    Join Date
    Apr 2011
    Location
    Portland, OR
    Posts
    1,306
    Member #
    27566
    Liked
    181 times
    .css.gz is a compressed version of the css file
    Artificial intelligence is nothing compared to natural stupidity -Someone

    Design is a funny word. Some people think design means how it looks.
    But of course, if you dig deeper, itís really how it works.
    -Steve Jobs



  4. #3
    Junior Member
    Join Date
    Jan 2015
    Posts
    2
    Member #
    41227
    Does drupal automatically create these compressed versions?

  5. #4
    Junior Member keens's Avatar
    Join Date
    Dec 2014
    Location
    Metro Manila, Philippines
    Posts
    5
    Member #
    41057
    Liked
    1 times
    You need to untick 'Aggregate and compress CSS files' so you can edit the normal .css file extension. Yes, Drupal will automatically create the files as per the option 'Aggregate and compress CSS files'.

    I suggest you create a backup of your site first before updating..


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 09:59 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com