• Resolved therealhopeful

    (@therealhopeful)


    I “moved” the content over to the root index today, and all seems to be going well so far. However, there is one small issue I would like to resolve. In order to get the background image specified in my CSS I had to use an absolute URL, which I don’t like to do because it can lead to issues with mirrored domains, etc. I noticed in header.php there is TEMPLATEPATH to handle such things, but when I tried to use it in my PHP-enabled CSS file, it didn’t work. Do you know what else I might need to add to make TEMPLATEPATH functional?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter therealhopeful

    (@therealhopeful)

    ?? bump ??

    The structure of you theme shouldn’t change. For example
    wp-content/
    -themes/
    –yourtheme/
    —style.css
    —index.php
    —other theme files
    —-images/
    —-yourheader.jpg
    just reference the header image as relative from where the style sheet resides in this example under wp-content/themes/yourtheme/style.css. So when referencing your image use images/yourheader.jpg.

    Thread Starter therealhopeful

    (@therealhopeful)

    Hey, it worked! Thanks, Jeremy!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘TEMPLATEPATH Question’ is closed to new replies.