• My working on the theme for my company’s blog. It’s a custom theme, and is working pretty well except the CSS (from style.css) show up on the dashboard when I go to Manage>Design. I think it’s a typo in the code, but I’ve re-typed it dozens of times, and even copied directly from the WP doc on writing themes. What am I missing?

    Here’s a direct link to the style sheet: Here

    And here’s the first few lines:

    /*
    Theme Name: ABC style
    Theme URI: http://www.alphabetarm.com/thebloggery/
    Description: Alphabet Arm News theme
    Author: ABC (Ira)
    Author URI: http://www.alphabetarm.com
    Version: 1.0
    .
    ABC's custom WordPress theme.
    .
    */
    
    /*  GLOBAL  */
    
    * {
    	margin: 0;
    	padding: 0;
    }
    
    …

Viewing 9 replies - 1 through 9 (of 9 total)
  • You can only have one stylesheet with this theme information comment in it per theme, and this comment needs to be unique for every theme. I once left this comment from my theme’s style.css in a new print.css file, and I had weird css pop up in the Dashboard.

    Also, get rid of this:

    .
    ABC’s custom WordPress theme.
    .

    Thread Starter tshirtfiend

    (@tshirtfiend)

    I’m not quite sure what you mean. I don’t have CSS files for any other media yet, so this comment is definitely unique to style.css. Are you talking about something else?

    .
    ABC's custom WordPress theme.
    .

    Above deleted. Didn’t solve it.

    Duplicate theme info comments in multiple stylesheets was merely one possible cause of this. I did fine one error in your stylesheet, but it wouldn’t cause your dashboard problems:

    margin-bottoms

    Thread Starter tshirtfiend

    (@tshirtfiend)

    Oops. Thanks. Fixed.

    tshirtfriend,

    did you ever figure out the cause of this? i’m having the same problem.

    I got it fixed. Had a few css errors, checked the code at
    http://jigsaw.w3.org/css-validator/

    and once errors were fixed, dashboard displays correctly

    Which should have been the first step – VERIFY YOUR CSS AND MARKUP – then if there is still a problem search the codex for a similar question, and if not create a new question.

    Indeed. Which i had done, and now the it is doing the same (code on the dashboard) despite the validator showing that there are no errors.

    It was displaying correctly, and then without me touching the stylesheet, the problem returned.

    The stylesheet I’m working with is http://www.elephantjournal.com/wp-content/themes/elephant/style.css

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘CSS code in dashboard’ is closed to new replies.