• Resolved joelwalsh

    (@joelwalsh)


    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

Viewing 12 replies - 1 through 12 (of 12 total)
  • 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….

    Thread Starter joelwalsh

    (@joelwalsh)

    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

    Thread Starter joelwalsh

    (@joelwalsh)

    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?

    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.

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

    Thread Starter joelwalsh

    (@joelwalsh)

    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

    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?

    Thread Starter joelwalsh

    (@joelwalsh)

    🙂

    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.

    <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.

    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.

    Thread Starter joelwalsh

    (@joelwalsh)

    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.

    Glad it’s fixed! Happy holidays….

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘CSS not being read in theme with renamed directory’ is closed to new replies.