WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Whole css file appearing in title on apperance page (9 posts)

  1. danielhockley
    Member
    Posted 5 years ago #

    Hi all,

    I've searched for an answer but can't find anything.

    I have inherited a wordpress theme on arrival in my new job. For some reason text from the whole file is appearing where the title and description should be on the appearance page. The tags at the top of the style.css page all seem to be in order, see below.

    /*
    Theme Name: CognoBlue
    Theme URL: http://www.blogsdna.com/cognoblue-wordpress-theme
    Description: Three column, Search Engine Optimized, Widget Ready, Adsense optimized,Adsense Friendly, Supporting tags & Gravatars, Lightweight WordPress v2.7 Compatible Professional WordPress Theme from BlogsDNA.
    Author: blogsdna
    Author URI: http://www.blogsdna.com
    Version: 1.0
    The CSS, XHTML and Design is released under GPL:
    http://www.opensource.org/licenses/gpl-license.php
    Tags: blue, widget ready, fixed width, three columns, 3 colums, widgets, adsense, seo, adsense ready, custom header, gravatar support, sidebar left, sidebar right, widget sidebar, seo adsense, XHTML, blue theme
    */
    
    /* reset
    --------------------------------------------------*/
    body,h1,h2,h3,h4,h5,h6,p,form,hr {margin:0;padding:0;}
    .low {display:none;}
    .clear {clear:both;}
    
    hr {
    border:1px solid #333333;
    }
    
    /* body
    --------------------------------------------------*/
    body {
    color:black; /*#333;*/
    background:white;
    margin:0;
    padding:0 0;
    font-family: "times new roman",verdana, Arial, Helvetica, sans-serif;
    font-size:14px;
    line-height:23px;
    text-align:center;
    }

    etc.

    Any ideas? Thanks.

  2. t31os
    Member
    Posted 5 years ago #

    Can you be more specific about the problem.

    A link would be handy if possible..

  3. danielhockley
    Member
    Posted 5 years ago #

    Hi t31os,

    Thanks for the quick reply. i can't link to the site itself for security reasons. What extra information would be helpful?

  4. t31os
    Member
    Posted 5 years ago #

    You say the text from the whole file is appearing...

    Now when you say this, do you mean the content of the whole stylesheet is being output to the browser?

    If the website is online, as in it's a live site, then run it through the validation check...

    http://validator.w3.org/

    It's likely an unclosed tag, or a minor mistake (missing character maybe) in the code... the validator can pick those kind of things up in most cases...

  5. danielhockley
    Member
    Posted 5 years ago #

    Ah - it's only on the appearance page in the admin panel.

    So in "Manage themes" where it says "Current Theme" it displays the thumbnail image of the theme and then displays the whole text from the file instead of it's title. It then displays it again as the description!

    The theme displays correctly on the frontend.

  6. t31os
    Member
    Posted 5 years ago #

    Second post i've seen recently with the same problem, i can't tell you in honesty, though i'd imagine it's something to do with the top lines in the stylesheet...

    Not had the problem myself, else i'd proberly be able to tell you what causes it....

  7. danielhockley
    Member
    Posted 5 years ago #

    OK I think I've solved this issue.

    I had to convert the line endings on the file to UNIX line endings (LF) from Mac line endings. This was interfering with the parsing of the tags at the top of the file.

  8. ixley
    Member
    Posted 5 years ago #

    thanks, this was happening to me too. I figured it had to be a text encoding issue but had no clue what it was. Hopefully they'll figure out a way to make this a little more friendly – I'm assuming a good number of people editing these files on a Mac are running into this problem.

  9. Mark / t31os
    Moderator
    Posted 5 years ago #

    It's the resposability of the user to ensure they use a valid editor, how can WordPress anticipate what any given user will use to edit files with?...

    There's 1000's of different programs used for editting..

    This is not a WordPress problem.. so it shouldn't be fixed and can't be fixed by WordPress.

Topic Closed

This topic has been closed to new replies.

About this Topic