Bug report: Titan theme navigation

  • Author
    Posts
  • #465636

    ryanhellyer
    Member

    The Titan theme has a bug in the dropdown navigation.

    The Suckerfish script is only being served to IE6 and older browsers, whereas it should be served to IE7 as well, other it triggers problems with IE8 compatibility mode.

    I’ve written an article about the issue here in case clarification of the exact nature of the bug is required:
    http://pixopoint.com/ie-hovers/

    The Titan theme available on WP extend does not have this bug. It has the following on line 33 of header.php:
    <!--[if lte IE 7]>
    <script type="text/javascript">
    sfHover=function(){var sfEls=document.getElementById("nav").getElementsByTagName("LI");for(var i=0;i<sfEls.length;i++){sfEls[i].onmouseover=function(){this.className+=" sfhover";}
    sfEls[i].onmouseout=function(){this.className=this.className.replace(new RegExp(" sfhover\\b"),"");}}}
    if(window.attachEvent)window.attachEvent("onload",sfHover);
    </script>
    <![endif]-->

    Whereas WordPress.com is outputting the following code:
    <!–[if lte IE 6]>
    <script type=”text/javascript” src=”http://s0.wp.com/wp-content/themes/pub/titan/ie/nav.js?m=1266945471g”></script>
    <![endif]–>

    WordPress.com is using an external file which is a better idea IMO than doing it inline as with the WP.org extend version, but it’s getting the IE version number incorrect unfortunately.

    #465873

    t3ck
    Member

    It’s best to directly report bugs to staff via their contact link http://en.support.wordpress.com/contact/

    #465877

    hanni
    Member

    I’ve alerted the theme team :)

    #465907

    Thanks for letting us know about this issue, Ryan! (Great write up on that issue too.)

    #465945

    ryanhellyer
    Member

    Glad to be of help :)

    Looks like it’s fixed now. Thanks for the speedy bug correction.

    #465946

    ryanhellyer
    Member

    Cross-posting in case anyone is interested in why I was diving into the code of that theme:

    https://en.forums.wordpress.com/topic/new-theme-cobaltcloud-theme

The topic ‘Bug report: Titan theme navigation’ is closed to new replies.