I am using the code below:
<!doctype html>
<html lang="<?php language_attributes(); ?>" dir="ltr">
<head>
<meta charset="<?php bloginfo('charset') ?>">
<meta name="description" content="<?php bloginfo('description') ?>">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<?php wp_head(); ?>
</head>
I have an error in line 1 in firebug sources
tab .
Failed to load resource: the server responded with a status of 404 (Not Found)
Now the site is not showing part of the site and footer!!
Thanks for helping.
I am using the code below:
<!doctype html>
<html lang="<?php language_attributes(); ?>" dir="ltr">
<head>
<meta charset="<?php bloginfo('charset') ?>">
<meta name="description" content="<?php bloginfo('description') ?>">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<?php wp_head(); ?>
</head>
I have an error in line 1 in firebug sources
tab .
Failed to load resource: the server responded with a status of 404 (Not Found)
Now the site is not showing part of the site and footer!!
Thanks for helping.
Share Improve this question edited Apr 4, 2019 at 22:17 rudtek 6,3935 gold badges30 silver badges52 bronze badges asked Apr 4, 2019 at 9:18 Mostafa NorzadeMostafa Norzade 3732 gold badges7 silver badges17 bronze badges 3 |1 Answer
Reset to default 3I 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'); ?>">
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745626958a4636866.html
<!doctype html>
was likely not the first line being referenced by Firebug. So check the first resource (JS/CSS file, image, etc.) which might not be properly linked to or it may have already been deleted, or simply doesn't exist. – Sally CJ Commented Apr 4, 2019 at 9:26