WordPress.org

Support

Support » Themes and Templates » Editing default style.css

Editing default style.css

  • mistercrumbs
    Member

    @mistercrumbs

    Apologies if I’m missing something really obvious here, but I’m using the default theme supplied with WordPress as a basis for my own theme, but after editing style.css and uploading it to the server the changes don’t seem to be reflected in the background colours/fonts etc.

    Thank you in advance 🙂

Viewing 15 replies - 1 through 15 (of 17 total)
  • Mark (podz)
    Support Maven

    @podz

    What are you expecting to see? I see default with a dark red gradient header image.

    I’d add that the default isn’t the best theme to start off as a base for changes – it has it’s own ‘quirks’ 🙂

    mistercrumbs
    Member

    @mistercrumbs

    Hmmm, well just to start off with I changed the background colours and border widths/style.

    But nothing I change in style.css seems to affect the theme at all :).

    Mark (podz)
    Support Maven

    @podz

    This might sound really daft, but it is this css you are editing?
    http://blog.mistercrumbs.com/wp-content/themes/default/style.css
    Are you editing from inside WP?

    mistercrumbs
    Member

    @mistercrumbs

    I’m editing in notepad, then uploading and replacing the original style.css.

    Frantically ctrl-f5ing doesn’t help either :).

    make sure you’re uploading into the theme that you’ve got activated

    that may seem obvious but could trip you up if you’re actually using your own modification and not the /default/ theme installation.

    secondly, the default theme is kind of strange in that it has Images (jpgs) for the site background. So resetting the background color in the CSS, your new color might be hiding behind the background images. So you can either recolor the images in Photoshop, or try to remove the images from the theme and use CSS background colors. Or switch to another theme to start with.

    mistercrumbs
    Member

    @mistercrumbs

    Thanks for helping, I’m definately uploading into the default theme directory, as the changes I’m making locally are being displayed here —> http://blog.mistercrumbs.com/wp-content/themes/default/style.css

    Before I posted here I deleted and then re-uploaded all the images associated with the theme, after deleting them the background changes still didn’t show.

    Just out of interest I’ve just deleted style.css from the sever and refreshed the page, the colours are still default without style.css.

    I’ve looked through all the other PHO files and there’s nothing else I can find that mentions layout.

    Maybe I’ll just try another theme to fiddle with 🙂

    Just to add to the complications: all the styles related to images are in the header.php – not in the stylesheet.
    So, yes: pick another theme.
    And for seeing the same stuff – empty the cache folder under the wp-content.

    Mark (podz)
    Support Maven

    @podz

    ahh…..

    Download wp-config.php
    Add this inside it
    define('DISABLE_CACHE', true);
    upload and see what happens.

    mistercrumbs
    Member

    @mistercrumbs

    Ooooooh, I didn’t think of that, I’ll try it now 🙂

    Anywhere in particular I should add that?

    Thanks folks.

    x

    Just below the rest of the “define” lines is fine.

    mistercrumbs
    Member

    @mistercrumbs

    Yeah, sorry just after I posted that there was a lunchbreak and I worked it out 🙂

    Hmmmm, I did as you suggested and once I uploaded it, it told me I hadn’t installed WordPress yet, it’s up again now having gone through install.php again.

    Also, I don’t have a cache folder :).

    Added define(‘DISABLE_CACHE’, true); after the reinstall and it’s still showing up as white, yet when I click my comments link (http://blog.mistercrumbs.com/?p=1#comments) the background and font colour’s changed.

    mistercrumbs
    Member

    @mistercrumbs

    Sorry for bumping this, but it doesn’t appear to have updated :).

    mistercrumbs
    Member

    @mistercrumbs

    I don’t mean to hound you fine people, but any ideas?

    x

    Bumping every hour is considered very annoying and will not get you any answer faster…

    mistercrumbs
    Member

    @mistercrumbs

    Eeek, sorry, I’ll shush.

    Just wanting to work it out before I go to bed.

    x

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Editing default style.css’ is closed to new replies.