• Hello. Would be glad if someone could help me out on the following.

    I use a conditional php include to get certain footers for certain sites:

    <?php
    if (is_page('kontakt')) {
    include (TEMPLATEPATH . '/footerkontakt.php');
    }
    elseif (is_page('produkte')) {
    include (TEMPLATEPATH . '/footerprodukte.php');
    }
    elseif (is_page('Special Offer')) {
    include (TEMPLATEPATH . '/footeroffer.php');
    }
    elseif (is_page('Tipps & Trends')) {
    include (TEMPLATEPATH . '/footertipps.php');
    }
    elseif (is_page('Philosophie')) {
    include (TEMPLATEPATH . '/footerphilosophie.php');
    }
    else{
    get_footer();
    }
    ?>

    It’s working fine in all browsers except ie6. Why might that be???

    Cheers!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • I would like this answer, too. Here’s the thing I am noticing, though… it IS including it — it’s just not displaying it!

    If you look at the source markup, the include file’s content is there (for me, anyway)… but you cannot see any evidence of it in the display. In my case, I am including a specific sidebar file — that generates a sub-menu — but the nested list isn’t displaying and as far as I can tell in my CSS, there’s no valid reason why not.

    OK, nevermind, I figured my issue out — it WAS a CSS problem. I had to specifically declare display:block for my nested list.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Conditional php include not working in ie6’ is closed to new replies.