• 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

Where should I add IE conditional comment?

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 › Design Tips and Tricks › Where should I add IE conditional comment?

This topic is: not resolved

Tagged: conditional comments, css, IE

  • This topic has 1 reply, 2 voices, and was last updated 11 years, 1 month ago by David Chu.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • April 25, 2014 at 7:12 am #102299
    senordeer
    Member

    Hello. I need to add a conditional comment for IE, wondering if I can add it in Genesis Simple Hooks? If so, where? This is the code I would like to add:
    <!--[if IE]>
    <style type="text/css">
    .page-id-7 #content {
    height:500px;
    }
    </style>
    <![endif]-->

    Just wondering if I can add it in Simple Hooks and if so which one OR is there a better way to go about adding an IE conditional comment? Using Sample Child theme.

    http://www.erikabonnell.com
    April 25, 2014 at 11:53 am #102341
    David Chu
    Participant

    Hi,
    Ideally, one enqueues these via functions. ๐Ÿ™‚ But there is a quick and dirty method for those who don't like coding.

    Genesis.... Theme Settings. Scroll down to the bottom to where you have Header and Footer Scripts. You could put your code into either box - I'd probably use the first one. Save, and there you are.

    Cheers, Dave


    Dave Chu ยท Custom WordPress Developer – likes collaborating with Designers

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Design Tips and Tricks’ 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

© 2025 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