Inserting additional meta tags

Hello there,

My client has requested I add the following IE11 compatibility tag:

What is the best way to insert into an X header?

Also, my client reported that on Windows, the site is reverting to IE7 Document Mode - any idea why this might be?

Regards,

Spencer

Hello Spencer,

Thanks for writing in!

The easiest way to add anything in the header is to install Insert Headers and Footers plugin (https://wordpress.org/plugins/insert-headers-and-footers/). Once installed, simply go to Settings > Insert Headers and Footers, find the header or footer and insert the meta or script that you want to insert for the header or for the footer.

Hope this helps. Please let us know how it goes.

Hi @RueNel,

Thanks for getting back to me.

That plugin works great, but is it possible for the tag be inserted specifically after and before ?

The problem the client is having is that the site is displaying IE8 document mode, but they are using IE11. Are you aware of this problem and how to fix it?

Regards,

Spencer

Hi Spencer,

Copy the file _meta.php from your parent X or PRO theme, from this directory \framework\views\global

Paste that file to your Child theme in the same directory, create the folder if needed.

Edit the _meta.php file that is on your child theme, in that file you’ll see:

<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

Paste your custom meta code between those lines.

That is not an issue with the Theme nor the site, please instruct your client to Turn Off the Compatibility Mode of IE

https://www.nfc.usda.gov/Publications/HR_Payroll/Reporting/Bulletins/2015/REPT-15-04att.htm

Hope it helps,
Cheers!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.