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

    My site is http://www.spectrecom.co.uk

    We have been having some trouble with our Google SERP – we are not showing meta or a preview and after speaking with a company they said that a line of code needs changing from –

    <body id=”top” class=”home blog ?”>

    to

    <body id=”top” class=”home blog”>

    How can this be done?

    Best

    Jonathan

    #108145

    Hi Jonathan,

    The classes generated in the top ID are from the wordpress body_class function. The plugin wp-super-cache is saving a cached version of the page without a browser specific output so the ? is showing instead.

    If you aren’t having any issues and you just want to remove it, you can try doing so by removing this line in the header.php of the theme files:

    .avia_get_browser()

    It’s within the fill body line:

    <body id="top" <?php body_class(avia_get_option('boxed'). " ".avia_get_browser()); ?>>

    Otherwise, just disabling the plugin would fix it.

    Regards,

    Devin

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

The topic ‘Problems with Body id "top" class code HTML’ is closed to new replies.