Where should I add IE conditional comment?

Community Forums Forums Design Tips and Tricks Where should I add IE conditional comment?

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  David Chu 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #102299

    senordeer
    Participant
    Post count: 25

    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
    #102341

    David Chu
    Participant
    Post count: 1353

    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

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.