WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Theme information in style.css being corrupted (12 posts)

  1. SRD75
    Member
    Posted 7 months ago #

    I am customising someone else's theme to allow the website owner to edit more regions than she could previously.

    I copied the theme into a new folder, with a different folder name to the original.

    I edited style.css, and replaced the theme information with:

    /*
    Theme Name: Customisable SuperBaby and Ted
    Author: Steve Doig
    Author URI: http://tech.doig.com.au
    Description: Modified version of SuperBaby and Ted to allow edits to the home page and footer navigation.
    Version: 2.0
    */

    Yet when I upload style.css to the theme's folder, I see this in Appearance > Themes.

    I've added a blank line between each line, with no difference.

    I've copied this info into a new Notepad, copied from that Notepad, and pasted back into the original Notepad with no difference.

    Can you see what is going on here?

  2. Andrew
    Forum Moderator
    Posted 7 months ago #

    Are you trying to create a Child Theme?
    http://codex.wordpress.org/Child_Themes

  3. SRD75
    Member
    Posted 7 months ago #

    No.

  4. Andrew
    Forum Moderator
    Posted 7 months ago #

    Could you describe the issue further?

  5. Can you post a link to the site in question so we can take a look?

  6. SRD75
    Member
    Posted 7 months ago #

    http://superbabyandted.com/

    The theme with the corrupted theme information is not activated.

    You can find its style sheet here:
    http://superbabyandted.com/wp-content/themes/superbabyandtedv3/style.css

  7. Andrew
    Forum Moderator
    Posted 7 months ago #

    Have you got some sort of caching plugin?

  8. SRD75
    Member
    Posted 7 months ago #

    No.

  9. Andrew
    Forum Moderator
    Posted 7 months ago #

    Are you using Windows and your server Linux?

  10. SRD75
    Member
    Posted 7 months ago #

    Every time I upload style.css, the new lines get removed, meaning WordPress is not able to distinguish each section of the theme information.

    I've tried uploading in both ASCII and binary.

  11. Andrew
    Forum Moderator
    Posted 7 months ago #

    When you've used Notepad have you checked your line endings?
    http://stackoverflow.com/questions/8195839/choose-newline-character-in-notepad

  12. SRD75
    Member
    Posted 7 months ago #

    Yes, I am using Windows, and the server is Linux.

  13. SRD75
    Member
    Posted 7 months ago #

    I use Notepad2 to edit style.css

    I opened it in Notepad++, and there were extra line breaks on every line.

    I opened it in Dreamweaver CS6, selected Commands > Apply Source Formatting, and all extra line breaks were removed.

    I uploaded it, and it now views normally in the browser.

    The Theme information is now displaying properly.

    Note: the style sheet was displaying properly in Notepad2 originally. Perhaps Notepad2 handles line breaks differently.

    Thanks for your help.

Reply

You must log in to post.

About this Topic

Tags