WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I read before I can use wp_localize_script to replace a string in a file (adding path to admin-ajax). what if I want to do something similar, but to the template directory for CSS?

PIE will get the URL relative to the document not CSS

share|improve this question
Not sure if I understand your question correctly, but why would you want to localize your css files? – marvinhagemeister Mar 25 '11 at 16:17

I assume you're trying to integrate CSS3PIE (PIE.htc) into your theme. Here's one solution:


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.