Archived topic
Avoid a character set in the meta tag
3 replies · Started by manaadiar on April 29, 2019
Hi, when I run an SEO test, GTMetrix gives me this error.. I am running GP Premium with a child theme.. The header on the child theme shows below.. Does this error mean I should remove this charset and show it elsewhere above the meta tag..?? Pls assist.. Thanks..
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="profile" href="http://gmpg.org/xfn/11">
Hi there,
That's something you'll find in all WordPress themes. I doubt it has any negative effect on the performance of your website. Do they offer an explanation as to why it should be avoided?
Well the explanation is that the charset must be early in the html structure and not in the <head> section.. So the charset can activate the rest of the stuff..
Hmm, I don't believe that's correct. If you view the source of any major website (google.com, amazon.com etc..) you'll see it belongs in the <head> section.