PNG fix for IE6 in wordpress


Add the following code in the <head> tag

<?php
header('Content-type: text/x-component');
?>
<style type="text/css">

/*
USAGE:
Copy and paste this one line into your site's CSS stylesheet.
Add comma-separated CSS selectors / element names that have transparent PNGs.
Remember that the path is RELATIVE TO THIS HTML FILE, not the CSS file.
See below for another method of activating the script without adding CSS here.
*/

img, div, input { behavior: url("http://<domain name>/wp-content/themes/<theme name>/iepngfix.htc") }
/*
Here's an example you might use in practice:
img, div.menu, .pngfix, input { behavior: url("/css/iepngfix.htc") }blank
*/

</style>

and download the files

iepngfix.doc

blank.gif

rename the iepngfix.doc to iepngfix.htc and put it on the root of your theme folder.

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.