I see a few errors in your code:
Your first line:
<html lang="<?php language_attributes(); ?>" dir="ltr">
should actually be:
<html <?php language_attributes();?> dir="ltr">
(notice that you dont need to add lang=
. The function does that by itself. That will likely fix the problem)
You didn’t add the ;
to 2 of your lines in the head:(shouldn’t be a problem, but it’s good to be consistent)
<meta charset="<?php bloginfo('charset') ?>">
<meta name="description" content="<?php bloginfo('description') ?>">
they should be
<meta charset="<?php bloginfo('charset'); ?>">
<meta name="description" content="<?php bloginfo('description'); ?>">