Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Modernizr Enabling WordPress


I have changed this question, as it seems CSS3 PIE is something nobody here knows much about. I would like to get [[LINK href=""]]Modernizr[[/LINK]] to work on my site which will allow CSS3 elements in non-CSS3 compatible browsers. Alternatively, if you can get [[LINK href=""]]CSS3 PIE[[/LINK]] (the javascript version) to work for me that would be just fine.

I put this in the header:
<script src="" type="text/javascript"></script>

Then added the no-js class to the HTML and it just doesn't want to work in IE.

What am I missing in my code? I know very little PHP.

Helpful Links
[[LINK href=""]][[/LINK]]
[[LINK href=""]][[/LINK]]

Answers (3)


Bob answers:

A relative path will not work, you can use a full path like to htc

Or you must import the style-sheet in your header using bloginfo(‘template_directory’).

For instance in your header you put

<style type="text/css" >
.count { behavior : url(<?php bloginfo('template_directory'); ?>/path/to/; }

Lucas Wynne comments:

Although I realize the path matters, I now have a direct path setup and it's not working.


Jimish Gamit answers:

change to in style.css

.count { display:block; clear:both; font-weight:normal!important; font-size:10px; float:right; padding:9px 14px 8px 14px; margin:6px 0 0 15px; border:4px solid #E2E2E2; -moz-border-radius:100px; -webkit-border-radius:100px; border-radius:100px; behavior: : url( }

Lucas Wynne comments:

Doesn't work.


Tom Ransom answers:

Modernizr and PIE are not two solutions to the same issue. You can install PIE but it will take a simple plugin to implement. Modernizr creates classes so that CSS can be adapted to the features available within a browser.

You might want to open another question to get the plugin developed.