WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] CSS not being read in theme with renamed directory (13 posts)

  1. joelwalsh
    Member
    Posted 8 years ago #

    I just created a new site using an old theme. I kept the theme the same but changed the name of the template (because I will be modifying it on the new site). I also made sure the reference to the CSS URL was correct in the renamed-directory theme. What else do I have to change?

    It seems that the site is not reading the CSS file of the renamed-directory theme, even though the CSS is where it is supposed to be and it is referenced properly in the head of the html document.

    The site works fine with the default template, and with the original template with the old name.

    This is the site (I may have switched to the original template):

    http://upmarketmerchant.com/

    This is the site where the template is being used successfully:

    http://upmarketseo.com

  2. vkaryl
    Member
    Posted 8 years ago #

    You need to change the name of the theme in the css file itself - in the commented section at the top of the file. That's where wp reads the theme info from....

  3. joelwalsh
    Member
    Posted 8 years ago #

    It looks like I didn't explain myself very well there.

    The issue is not the NAME of the theme. The issue is that the website is not using the CSS at all even though the URL of the CSS is properly listed in the header of the document.

    By this I mean, none of the styles or positions specified in the CSS are being used; it's all as if there were no CSS. Since the CSS is called from the header using the URL of the CSS, and that is correct, how can this be? What am I doing wrong?

    I've put it back to the old CSS so you can see here: http://www.UpMarketMerchant.com

  4. joelwalsh
    Member
    Posted 8 years ago #

    I mistyped in the first post.

    I didn't rename the template, I renamed the directory.

    The problem is that the DIRECTORY is renamed. I have made sure the CSS is called properly in the header of the document, but still it is not working. What's up?

  5. ifelse
    Member
    Posted 8 years ago #

    It's appearing fine on my machine. Do a Force refresh (CTRL+F5) to make sure you're not receiving something from your browser cache.

  6. vkaryl
    Member
    Posted 8 years ago #

    Did you activate the theme in the Presentation screen? Yeah, looks like.... I had to hard-refresh as well....

  7. joelwalsh
    Member
    Posted 8 years ago #

    I tried your hard-refresh and it still looks like there's no CSS.

    Just look at http://www.upmarketseo.com and compare it with http://www.upmarketmerchant.com It's the same theme. But not even the font is right on upmarketmerchant.com

  8. vkaryl
    Member
    Posted 8 years ago #

    Okay, so is this the actual "residence address" of the css for this blog:

    http://upmarketmerchant.com/wp-content/themes/upmarket-merchant-credit-card/style.css

    And I see that you're using an @import for it, what happens if you go back to the normal mode of calling css in wp?

  9. joelwalsh
    Member
    Posted 8 years ago #

    :)

    What's the normal mode of calling css in wp?

    The thing is, I've used that same method of calling the CSS in every other theme I've done, including one that's on the same server as this.

  10. vkaryl
    Member
    Posted 8 years ago #

    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />

    I don't know why it would matter.... *shrug* Just not the way it's normally done, so something to check.

  11. ifelse
    Member
    Posted 8 years ago #

    The CSS is being pulled back fine and is being used. The problem is in your markup i.e. the html code being generated by the php template files.

  12. joelwalsh
    Member
    Posted 8 years ago #

    Hey guys,

    Thank you for all your help.

    I suppose something must have gone wrong when the files were FTP'd to the server because when I deleted the theme and re-uploaded it using filezilla, it was fine.

    Thanks and sorry for the trouble.

  13. vkaryl
    Member
    Posted 8 years ago #

    Glad it's fixed! Happy holidays....

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.