• 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

adding metadata to the beginning of document

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 › adding metadata to the beginning of document

This topic is: not resolved
  • This topic has 3 replies, 2 voices, and was last updated 10 years, 3 months ago by demidesign.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • April 6, 2016 at 12:56 pm #183063
    demidesign
    Member

    Hi I'm having issues with IE compatibility mode, I need to add this metatag <meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE" /> to the very beginning of the header it needs to be the first header. can somone point me in the right direction I implemented this through the wordpress dashboard but it pushes it down too far for IE to pick it up.

    Any help must be greatly appriciated.

    April 6, 2016 at 1:32 pm #183067
    carasmo
    Participant

    This won't throw an error, IF you use a code editor, ftp, and you make sure you are outside all other functions. However, I have not tested it to see if it gets rid of the broken icon. I usually set this in .htaccess but haven't bothered supporting older than 9 in years unless specifically told to (and not a single person has said a thing). You can google for how to w/ .htaccess (outside the WP code) .

    /** 
     *
     * Add Header X-UA-Compatible for IE
     *
     */
     
    function set_uxa_mode_ie() {
    	
    	header ( 'X-UA-Compatible: IE=9, IE=8, IE=7, IE=EDGE' );
    	
    }
    add_action(  'send_headers', 'set_uxa_mode_ie'  );  
    

    Genesis Theme Customization and Help

    April 6, 2016 at 2:36 pm #183071
    demidesign
    Member

    Thank you so much!

    April 6, 2016 at 3:05 pm #183072
    demidesign
    Member

    thank you so much

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 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