WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] include() in IE browsers? (3 posts)

  1. syncbox
    Member
    Posted 4 years ago #

    Is there some inherent bug in IE browsers (eg. IE6) where using something like:

    <?php
    if (is_tree(85)) {
    include('sidebar-85.php'); }
    elseif (is_tree(87)) {
    include('sidebar-87.php'); }
    elseif (is_tree(90)) {
    include('sidebar-90.php'); }
    elseif (is_tree(94)) {
    include('sidebar-94.php'); }
    elseif (is_tree(99)) {
    include('sidebar-99.php'); }
    elseif (is_tree(102)) {
    include('sidebar-102.php'); }
    else {
    get_sidebar();
    }
    ?>

    I have is_tree() in my functions and it is working elsewhere perfectly (Firefox browsers) AND is_tree() seems to be working even in IE6 for writing styles in the header conditionally.

    So... is there an includes issue for IE6?

  2. iridiax
    Member
    Posted 4 years ago #

    I think that your relative paths may be a problem. See:

    http://codex.wordpress.org/Include_Tags

  3. syncbox
    Member
    Posted 4 years ago #

    Actually, I just solved it. It's a CSS issue where the nested list (using a class named "subs") was being WRITTEN in the source, but not displaying in IE6... I put display:block into the CSS for that class and now it is displaying.

    But thanks, anyway.

Topic Closed

This topic has been closed to new replies.

About this Topic