Pergunta

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.

Foi útil?

Solução

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.

Outras dicas

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.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top