[Support request] Avoid a character set in the meta tag

Home Forums Support Avoid a character set in the meta tag

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #883426
    manaadiar

    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″&gt;

    #883728
    Tom
    Lead Developer
    Lead Developer

    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?

    #884061
    manaadiar

    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..

    #884530
    Tom
    Lead Developer
    Lead Developer

    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.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.