How to move the wordpress template style.css file in another folder?
I would like to follow one of Page Speed's recommendation: Serve static content from a cookieless domain. So I need to move the style.css file away from the default template folder and put it in my cookieless domain.
How do I notice wordpress for 开发者_高级运维this change?
Thanks.
Style.css is ultimately called in the header file of a wordpress template. Simply changing the location call in your templates header to the one where your new styles.css file is located should do the trick.
OR you could leave everything where it is and set up a sub-domain (say http://static.example.com) and using CNAME in your DNS have that point to your www/root so that any existing file path can be called using that new sub-domain. As long as none of the resource using that sub-domain set cookies then your are achieving the same effect of using a separate (cookie less) domain. See http://www.ravelrumba.com/blog/static-cookieless-domain/ for a full run down.
精彩评论