• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Conditional Comments for IE Legacy Browsers

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Conditional Comments for IE Legacy Browsers

This topic is: not resolved

Tagged: conditional comments, IE

  • This topic has 6 replies, 3 voices, and was last updated 10 years, 5 months ago by jenniferh.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • March 11, 2016 at 8:53 am #181211
    jenniferh
    Member

    Hello,

    I'd like to add conditional comments for Internet Explorer legacy browsers using an external style sheet.

    I'm a little uncomfortable making changes to the functions.php file, so I need detailed instructions on how to do this. Can anyone help with this?

    Thanks!
    Jennifer

    http://www.ezline.com/
    March 13, 2016 at 5:23 am #181318
    Victor Font
    Moderator

    Hi Jennifer,

    Looks like you're using the Minimum Pro theme. Copy the custom css file to the theme's directory through FTP. Download functions.php from the theme's directory and edit it locally. Don't edit the file with the WordPress theme editor. If you make a mistake, you wil white screen the site in which case you would have to FTP into it anyway to fix it.

    Look for the following function at line 21:

    function minimum_enqueue_scripts() {
    
    	wp_enqueue_script( 'minimum-responsive-menu', get_bloginfo( 'stylesheet_directory' ) . '/js/responsive-menu.js', array( 'jquery' ), '1.0.0' );
    	wp_enqueue_style( 'dashicons' );
    	wp_enqueue_style( 'minimum-google-fonts', '//fonts.googleapis.com/css?family=Roboto:300,400|Roboto+Slab:300,400', array(), CHILD_THEME_VERSION );
    
    }
    function minimum_enqueue_scripts() {
    
    	wp_enqueue_script( 'minimum-responsive-menu', get_bloginfo( 'stylesheet_directory' ) . '/js/responsive-menu.js', array( 'jquery' ), '1.0.0' );
    	wp_enqueue_style( 'dashicons' );
    	wp_enqueue_style( 'minimum-google-fonts', '//fonts.googleapis.com/css?family=Roboto:300,400|Roboto+Slab:300,400', array(), CHILD_THEME_VERSION );
    	wp_enqueue_style( 'custom-css', get_bloginfo( 'stylesheet_directory' ) . 'custom.css', array(), '1.0.0' );
    }

    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    March 13, 2016 at 9:02 am #181335
    Victor Font
    Moderator

    Just realized I left a backslash out of the code. This is the corrected version:

    function minimum_enqueue_scripts() {
    
    	wp_enqueue_script( 'minimum-responsive-menu', get_bloginfo( 'stylesheet_directory' ) . '/js/responsive-menu.js', array( 'jquery' ), '1.0.0' );
    	wp_enqueue_style( 'dashicons' );
    	wp_enqueue_style( 'minimum-google-fonts', '//fonts.googleapis.com/css?family=Roboto:300,400|Roboto+Slab:300,400', array(), CHILD_THEME_VERSION );
    	wp_enqueue_style( 'custom-css', get_bloginfo( 'stylesheet_directory' ) . '/custom.css', array(), '1.0.0' );
    }

    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    March 13, 2016 at 11:52 am #181356
    jenniferh
    Member

    Hi Victor,

    Thanks for your help with this! Yes, I will work this via ftp and keep a backup of the original functions.php.

    I'm trying to pinpoint the css correction that I need to make for IE (specifically Windows XP/IE 6 & 7). I'm using Browserstack emulator to test it and the big problem is with the main navigation menu dropping down vertical rather than horizontally as it should be.

    I believe the issue is with this class below, but I can't figure out how to correct it for IE:

    .genesis-nav-menu .menu-item {
    display: inline-block;
    margin: 0;
    text-align: left;
    }

    Can you suggest a css modification to correct this issue?

    Jennifer

    March 13, 2016 at 12:57 pm #181357
    carasmo
    Participant

    Inline block is not recognized by IE 6 or 7, you will need to go look for old CSS hacks for those browsers, I believe it's display:inline and zoom (yep, I was right, see link below). These are not specifically conditional css, this is a browser css hack. Conditional comments is different and requires that you add classes to the html or body tag like html5 boilerplate.

    http://stackoverflow.com/questions/6544852/ie7-does-not-understand-display-inline-block

    You would stack it so those hacks are first in the property so that the newer browsers will use inline-block.

    Float also works on super old browsers. Microsoft dropped support for IE 6 and 7 a long time ago. IE 8 support is being dropped soon (or has been).


    Genesis Theme Customization and Help

    March 13, 2016 at 4:50 pm #181366
    Victor Font
    Moderator

    Most developers don't bother with such old browsers any longer, most just post a message that this browser isn't support, Please update your browser.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    March 13, 2016 at 7:13 pm #181370
    jenniferh
    Member

    Thank you Victor and Carasmo,

    I was able to correct the nav menu using your suggestion Carasmo:

    *display: inline;
    zoom: 1;

    There are still other minor issues when viewing with the old IE browsers, but like you both have said we can only do so much to accommodate them!

    Appreciate your help with this!
    Jennifer

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble