admin管理员组文章数量:1026989
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'); ?>">
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
Well, the
<!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 - "first resource" - I mean, the corresponding resource. – Sally CJ Commented Apr 4, 2019 at 9:34
- I did not make a change on the site. Suddenly it became like that . now not showing part of the site and footer !! – Mostafa Norzade Commented Apr 4, 2019 at 10:50
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'); ?>">
本文标签: errorsltdoctype htmlgtFailed to load resource
版权声明:本文标题:errors - <!doctype html> : Failed to load resource 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745626956a2159921.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