Forums

Conditional php include not working in ie6 (3 posts)

  1. hannes.bahrenburg
    Member
    Posted 1 year ago #

    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!!

  2. syncbox
    Member
    Posted 2 months ago #

    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.

  3. syncbox
    Member
    Posted 2 months ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic