Is_Page renders incorrectly in in IE6
-
I am trying to add the following conditional statement to my theme but it does not work in IE6. Basically, I want each page to have a different class and display a different bg image.
Works perfectly in all browsers except IE6.
In IE6, the front page image shows up fine, but on all other pages no image displays. The html and CSS code validates. When I look at the source code, the html output is correct so why doesn’t it pick up the image from the stylesheet? Any clues?
<?php if (is_front_page()) { echo "<div id='wrap' class='bg-home'>";} elseif (is_page('licensing')) { echo "<div id='wrap' class='bg-licensing'>";} elseif (is_page('about')) { echo "<div id='wrap' class='bg-about'>";} elseif (is_page('news')) { echo "<div id='wrap' class='bg-news'>";} elseif (is_page('artist-writer')) { echo "<div id='wrap' class='bg-artist'>";} elseif (is_page('store')) { echo "<div id='wrap' class='bg-store'>";} elseif (is_page('contact')) { echo "<div id='wrap' class='bg-contact'>";} else {echo "<div id='wrap' class='bg-home'>";} ?>
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Is_Page renders incorrectly in in IE6’ is closed to new replies.