Site missed <!DOCTYPE html>

If you inspect here : https://nutri-eat.it/ you ll see that is not present, here https://nutri-eat.com/ is it.
This happened after the migration from .com to .it

This is the base.php and it seems ok :

 <?php

// =============================================================================
// VIEWS/HEADER/BASE.PHP
// -----------------------------------------------------------------------------
// Declares the DOCTYPE for the site, includes the <head>, opens the <body>
// element as well as the .x-root <div> and .x-site <div>.
// =============================================================================

$x_root_atts = x_atts( apply_filters( 'x_root_atts', array( 'id' => 'x-root', 'class' => 'x-root' ) ) );
$x_site_atts = x_atts( apply_filters( 'x_site_atts', array( 'id' => 'x-site', 'class' => 'x-site site' ) ) );

?>
<!DOCTYPE html>

<html class="no-js" <?php language_attributes(); ?>>

<head>
  <?php wp_head(); ?>
</head>

<body <?php body_class(); ?>>

  <?php wp_body_open(); ?>

  <?php do_action( 'x_after_body_begin' ); ?>

  <div <?php echo $x_root_atts; ?>>

    <?php do_action( 'x_before_site_begin' ); ?>

    <div <?php echo $x_site_atts; ?>>

    <?php do_action( 'x_after_site_begin' ); ?>

Hey @MP_Quadro,

This has something to do with your child theme. Though there’s no problem with the template you’ve shown, there might be a custom function in your child theme overriding the header. It’s most probably related to ACF custom code as it’s being outputted before the doctype.

Please have a web developer investigate the issue in your site as we do no not cover custom code issues as part of our theme support.

Thanks.

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