ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

CP CSS cached?

April 30, 2009 5:30pm

Subscribe [2]
  • #1 / Apr 30, 2009 5:30pm

    Michael C. (KKCJ)

    100 posts

    I’m trying to do some minimal adjustments to the CP theme for a client. I downloaded the /themes/cp_themes/default/ folder locally, duplicated it, renamed the folder, adjusted the CSS and a couple of images, and uploaded the new theme back to the server.

    Both “Admin -> System Preferences -> Control Panel Settings -> Default Control Panel Theme” and the equivalent CP theme selection dropdown in my admin user profile are set to use the new theme. I also cleared all cached files, etc, but there’s no change in the CP appearance. FireBug reveals that the path to some of the images referenced by the CSS file have changed appropriately, but that’s due to the EE variables in that CSS file (for example, background: #174777 url({path:image_url}bg_top.png) repeat-x left top;).

    The CSS file appears to be an inline CSS, as well. And yet when I switch between the default and classic themes, it all works perfectly. Why won’t the system switch to using my new theme’s CSS? Am I limited to choosing CP themes that were present and registered in the system or something at the time of installation?

  • #2 / Apr 30, 2009 5:53pm

    Ingmar

    29245 posts

    No, you are not limited to themes that were present. In fact, duplication an existing theme and working off that is an excellent way to get started. You might want to clear caches again (also browser cache), and if that doesn’t work delete the contents of your “cache” folder manually via PHP. Also make sure to use the latest version and build of EE.

  • #3 / Apr 30, 2009 6:03pm

    Michael C. (KKCJ)

    100 posts

    Done, done, and done. No change.

    EE 1.6.7 build 20090320. Disabled extensions. Cleared cache. Deleted all files under the /system/cache/*_cache/ folders. Nada.

    Then I noticed that the classic theme has a classic.css, not a default.css. Renamed my custom css to match the folder name.

    Wondered why that doesn’t appear to be documented anywhere. 😉

    Thanks, Ingmar. 😊

  • #4 / Apr 30, 2009 6:05pm

    Ingmar

    29245 posts

    Glad to see you were able to solve it 😊 If you need further help, simply start a new thread, please.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases