1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Changes are not being saved in css.

Discussion in 'Drupal' started by kawal24, Oct 31, 2011.

  1. #1
    I have edited some css for the panels in public_html/sites/default/files/ctools/css/xxxx.css file but those changes vanish as soon as i refresh or return back to public_html.
    So because of that the changes are not taking place.I even changed the permissions in cpanel to 7 7 7 but still the changes are not being saved.
    Any idea how i shall go about this ?
     
    kawal24, Oct 31, 2011 IP
  2. clockwood

    clockwood Peon

    Messages:
    26
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    "public_html/sites/default/files/ctools/css/xxxx.css" - I'm not 100% sure, but I think the files in the /files directory are generated by the ctools module. Sounds like it is overwriting/restoring the file. Copy the styles you need to edit from the ctools stylesheet into your theme's styles.css. This will override the default styling and prevent future issues.

    Also, it's best not to never edit a module's css files directly. If you ever update the module (which you will), the changes will go poof!
     
    clockwood, Nov 1, 2011 IP
  3. bekar09

    bekar09 Active Member

    Messages:
    283
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    70
    #3
    It is best to override the output of any module css in your theme's style.css(sites/all/themes/your_theme/css/style.css) or whatever css you're using. Let me know if it works for you.
     
    bekar09, Nov 5, 2011 IP
  4. kawal24

    kawal24 Peon

    Messages:
    70
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I first edited the css in panel's css and it worked.Now i have made the changes to style.css of my theme as clockwood recommended.
     
    kawal24, Nov 15, 2011 IP