WordPress.org

Forums

JQuery Accordion Menu Widget
.ie8 Conditional Classes ignored w/ Genesis (1 post)

  1. tdoccc
    Member
    Posted 1 year ago #

    Hey guys.

    I'm using a Genesis theme coupled with the JQuery menu. Naturally, some aspects of my site don't look quite right on older Internet Explorer versions, so I've inserted code which generates conditional classes in the header for use in the main theme's CSS file.

    /** Conditional html element classes */
    remove_action( 'genesis_doctype', 'genesis_do_doctype' );
    add_action( 'genesis_doctype', 'child_do_doctype' );
    function child_do_doctype() {
        ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <!--[if lt IE 7 ]> <html class="ie6" xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes( 'xhtml' ); ?>> <![endif]-->
    <!--[if IE 7 ]>    <html class="ie7" xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes( 'xhtml' ); ?>> <![endif]-->
    <!--[if IE 8 ]>    <html class="ie8" xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes( 'xhtml' ); ?>> <![endif]-->
    <!--[if IE 9 ]>    <html class="ie9" xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes( 'xhtml' ); ?>> <![endif]-->
    <!--[if (gt IE 9)|!(IE)]><!--> <html class="" xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes( 'xhtml' ); ?>> <!--<![endif]-->
    <head profile="http://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php bloginfo( 'charset' ); ?>" />
        <?php
    }

    So far so good. In addition, I'm using a gradient for the background of my custom menu theme.

    background: -webkit-gradient( linear, left top, left bottom, color-stop(0.05, #D3E4BE), color-stop(1, #AECE87) );
    background: -moz-linear-gradient( center top, #D3E4BE 5%, #AECE87 100% );
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#D3E4BE', endColorstr='#AECE87');

    Now in some IE versions the 'filter' part shows up fine, though sadly it doesn't show the gradient for the a:hover, but I was willing to overlook this.

    However, I noticed it didn't show ANY of the background colour on a different colleague's computer (using what I believe is the same version of IE but on a different OS), so I tried to add the .ie8 conditional class to the custom menu css (ie8 being the version that I use) so I can replace the gradient with a plain colour.

    With the general theme css it has no problem picking up these classes. However with the jquery menu plugin css - these are bypassed.

    Is there any way of getting the plugin to pick up these conditional classes?

    Cheers for the help.

    https://wordpress.org/plugins/jquery-vertical-accordion-menu/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • JQuery Accordion Menu Widget
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic