[resolved] Theme name, author, description not displaying correctly in 3.2-RC2 (13 posts)

  1. I created a custom theme with the following lines placed at the head of style.css as usual:

    Theme Name: CLIENT NAME Coaching
    Theme URI: http://www.zoonini.com
    Author: Zoonini Web Services
    Author URI: http://www.zoonini.com
    Description: Custom theme for CLIENT NAME Coaching (Based on Starkers and Twenty Ten)
    Version: 1.0

    What's displaying in the Appearance > Themes area under Available Themes is:

    "clientname by Anonymous" - instead of the correct theme name and author URL. The theme description and version number are completely missing.

    "clientname" is the name of my custom theme folder.

    Not a huge deal but I'm wondering if this is a bug?

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    I've not come across this problem on 3.2. Have you checked the file format & encoding when saving it? I always ensure that's it's saved in Unix format / ANSII encoded.

  3. Hmm - all formats & encoding should be correct. Could it make any difference that I'm using a MAMP local server on my Mac for the first time? I've never seen this problem running many installs of WP (3.1.x) on a remote server.

    Thanks for your help!

  4. It looks fine for me too on RC3.

    ETA: Does it look okay for the default themes or is it busted for everyone?

  5. It's OK for the default themes, just busted on my custom one. I haven't updated to RC3 yet but will do so soon - maybe it'll make a difference. Thx!

  6. keesiemeijer
    Posted 4 years ago #

    Same as Ipstenu on 3.1.3. Load it to a live site and and see if that changes it.

  7. Thanks, keesiemeijer - I'll be moving this site to a remote testing server soon so I'll see what happens there.

  8. I've seen MAMP read line breaks REALLY weirdly. What editor?

  9. Happened on two local MAMP installs - one using Dreamweaver and one using TextMate.

  10. Mark Jaquith
    WordPress Lead Dev
    Posted 4 years ago #


    Can you zip up your theme (or at least the style.css file) and put it somewhere for download?

    Also, can you post the output of ls -la in that theme's directory?

  11. Hi Mark, thanks for having a look.

    Here's the theme [link removed] for one of the MAMP sites where this is happening - a test site for one of my talks at next week's WordCamp Montreal.

    Here's a screenshot of what it looks like in the Appearance > Themes area.

    I upgraded to RC3 with no change on two local installs.

    Output of ls -la is:

    drwxr-xr-x  27 kpresner  staff    918 30 Jun 09:32 .
    drwxr-xr-x@  9 kpresner  staff    306 30 Jun 09:33 ..
    -rw-r--r--@  1 kpresner  staff   6148 30 Jun 09:32 .DS_Store
    -rw-r--r--@  1 kpresner  staff    472 10 Sep  2010 404.php
    -rw-r--r--@  1 kpresner  staff    640 25 Jun 11:57 category.php
    -rw-r--r--@  1 kpresner  staff   2580  8 Sep  2010 comments.php
    -rw-r--r--@  1 kpresner  staff   4262 13 Sep  2010 contact-form.php
    drwxr-xr-x   9 kpresner  staff    306 30 Jun 09:24 css
    -rw-r--r--@  1 kpresner  staff   3571  8 Sep  2010 editor-style.css
    -rw-r--r--@  1 kpresner  staff    215 25 Jun 13:03 footer.php
    -rw-r--r--@  1 kpresner  staff  15924 17 Sep  2010 functions.php
    -rw-r--r--@  1 kpresner  staff   3219 25 Jun 13:19 header.php
    drwxr-xr-x  29 kpresner  staff    986 30 Jun 09:23 images
    -rw-r--r--@  1 kpresner  staff    379 25 Jun 11:55 index.php
    drwxr-xr-x   8 kpresner  staff    272  1 Nov  2010 js
    drwxr-xr-x   4 kpresner  staff    136 14 Sep  2010 languages
    -rw-r--r--@  1 kpresner  staff   3297 25 Jun 11:57 loop.php
    -rw-r--r--@  1 kpresner  staff    604 25 Jun 11:55 onecolumn-page.php
    -rw-r--r--@  1 kpresner  staff    473 25 Jun 11:56 page.php
    -rw-r--r--@  1 kpresner  staff  64322 10 Sep  2010 screenshot.png
    -rw-r--r--@  1 kpresner  staff    725 25 Jun 11:56 search.php
    -rw-r--r--@  1 kpresner  staff   1319  8 Sep  2010 sidebar-footer.php
    -rw-r--r--@  1 kpresner  staff    814 25 Jun 13:54 sidebar-secondary.php
    -rw-r--r--@  1 kpresner  staff    534 25 Jun 13:35 sidebar.php
    -rw-r--r--@  1 kpresner  staff   1501 25 Jun 11:57 single.php
    -rw-r--r--@  1 kpresner  staff    432 30 Jun 09:32 style.css
    -rw-r--r--@  1 kpresner  staff    491 25 Jun 11:57 tag.php
  12. Mark Jaquith
    WordPress Lead Dev
    Posted 4 years ago #


    The problem is that your newline characters are CR (\r) instead of LF (\n). See this Wikipedia entry for more information.

    To fix it (tested on Mac OS X), open up a Terminal window, and do the following:

    cd wp-content/themes/YOUR-THEME-DIR/
    cat style.css | tr '\r' '\n' > style-fixed.css

    That'll replace them (then just move style-fixed.css to style.css). Once that's done, I was seeing the correct information in WordPress.

    One of your development tools is doing something naughty... I suspect it was Dreamweaver. Textmate wouldn't do this (but nor would it fix it if it was previously done).

  13. Thanks so much for checking this, Mark! What's so odd is that I've been using Dreamweaver's code editor for years and it's the first time I've seen this issue, so I figured it must have something to do with one of the factors that had changed this time around (i.e. MAMP, 3.2 or Textmate). How very strange. I'll double-check the line-break settings in DW to make sure they hadn't gotten changed somehow.

    I really appreciate you solving the mystery and I'm glad it's not a 3.2 bug that has to be dealt with. Thanks again.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.