Forums

[resolved] My theme's information looks crappy in dashboard (12 posts)

  1. badsci
    Member
    Posted 2 years ago #

    I am designing my own theme from the ground up.

    The information about my theme that displays in the "Manage Themes" screen of the dashboard looks crappy - not all nicely formatted like the other themes.

    Classic and Default have nice info: theme name, its version, a brief description.

    My theme has the theme name and then just dumps the rest of the information from the comments at the head of the theme's style sheet.

    The comments at the head of Classic and Default look exactly the same as mine, yet they display nicely.

    I've spend about 2 hours combing the web, the wordpress codex and these forums trying to figure out how to get my theme's info to look good, but can't find anything.

  2. Peter Boosten
    Member
    Posted 2 years ago #

    Maybe you could post the comment area of your style.css here?

    Peter

  3. badsci
    Member
    Posted 2 years ago #

    Here is css comment area:
    /*
    Theme Name: GroundUp
    Theme URI: http://www.badscience.org/
    Description: not much to it
    Version: 1.0
    Author: Me
    Tags: blank, simple, homemade
    */

    This is what the theme manager displays:

    GroundUp Theme URI: http://www.badscience.org/ Description: not much to it Version: 1.0 Author: Me Tags: blank, simple, homemade 1.0 Author: Me Tags: blank, simple, homemade by Me Tags: blank, simple, homemade

    not much to it Version: 1.0 Author: Me Tags: blank, simple, homemade

    All of this theme’s files are located in /themes/ground_up.

    Tags: blank, simple, homemade

    As you can see, there is a bunch of repetition as if that information displays through a loop until only the last thing is left.

    The classic theme, in contrast, displays like this in the theme manager:

    WordPress Classic 1.5 by Dave Shea
    The original WordPress theme that graced versions 1.2.x and prior.
    Activate | Preview | Delete
    All of this theme’s files are located in /themes/classic.

    Tags: mantle color, variable width, two columns, widgets

    and its CSS comments look like this:
    /*
    Theme Name: WordPress Classic
    Theme URI: http://wordpress.org/
    Description: The original WordPress theme that graced versions 1.2.x and prior.
    Version: 1.5
    Author: Dave Shea
    Tags: mantle color, variable width, two columns, widgets

    Default WordPress by Dave Shea || http://mezzoblue.com
    Modifications by Matthew Mullenweg || http://photomatt.net
    This is just a basic layout, with only the bare minimum defined.
    Please tweak this and make it your own. :)
    */

    I can't figure out what I need to do to get my theme information to look nice in the dashboard. Thanks for any help!

  4. badsci
    Member
    Posted 2 years ago #

    Still wondering how I can get my theme's info to look good, and not recursive, in the dashboard. Does anyone have any ideas?

    Here is what I'm talking about - my ugly formatting on left, nice theme formatting on the right:

    image

  5. badsci
    Member
    Posted 2 years ago #

    Hey, experts, any thoughts?

  6. alchymyth
    The Sweeper
    Posted 2 years ago #

    looks like there are no 'proper' linebreaks in your header - even though it might look ok in your editor.
    can you post a link to the stylesheet? or post it into a pastebin and link to it?

  7. badsci
    Member
    Posted 2 years ago #

    I'm running a local site while I develop it, but I can upload and post a link...
    I just copied the commented header code from the default theme and edited it, so I'm not sure why it wouldn't work.
    Here's the style sheet:
    http://www.badscience.org/junk/style.css

  8. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    That theme info works fine for me when I use it within one of my themes.

  9. alchymyth
    The Sweeper
    Posted 2 years ago #

    thank you.
    i downloaded your file, and uploaded it with dreamweaver ftp into the classic theme and activated the theme preview in admin: screenshot.
    it displays absolutely normal online.

  10. badsci
    Member
    Posted 2 years ago #

    Whoa. Amazing. Perhaps I need to check it live. Will upload now <busy uploading>

  11. badsci
    Member
    Posted 2 years ago #

    <blush>
    Looks great online. It's odd that it looks so bad local, and other themes look normal on my local testing server.

    Thanks y'all! Helped me learn my 10th new thing today!

  12. theandyreport
    Member
    Posted 2 years ago #

    Hey I had the exact same problem. I created the css file earlier on a different computer and it was working fine. Then this evening, after editing it in DreamWeaver on my laptop, the problem occurred.

    Turns out, yes, some kind of funky line breaks were introduced to the header of my CSS. Probably by DreamWeaver? Opening a working css file in a text editor (such as the default theme css) and resaving worked for me. Interestingly, doing the same edit job in DW did not work. Only worked in TextEdit as plain text.

    Hope it helps someone...

Topic Closed

This topic has been closed to new replies.

About this Topic