M
M
Maxim Borisenko2020-06-22 10:35:48
JavaScript
Maxim Borisenko, 2020-06-22 10:35:48

Why does Google throw an error in the console if everything is fine and everything is connected?

bi-bpg.com - site.

I can't figure out why the Google console gives an error that it can't find js and css

files bi-bpg.com/css/style.css net::ERR_ABORTED 404 (Not Found)
bi-bpg.com/libs/SlickSlider/slick. css net::ERR_ABORTED 404 (Not Found)

But they work and are referenced differently.

<meta charset="<?php bloginfo( 'charset' ); ?>">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
  <link rel="stylesheet" href="<?php echo get_bloginfo('template_url')?>/style.css" /> 
  <script src="<?php echo get_bloginfo('template_url')?>/js/script.js"></script>
  <script src="<?php echo get_bloginfo('template_url')?>/libs/OwlCarousel/owl.carousel.min.js"></script>  
  <script src="<?php echo get_bloginfo('template_url')?>/libs/OwlCarousel/owl.carousel.js"></script>
  <script src="<?php echo get_bloginfo('template_url')?>/libs/SlickSlider/slick.min.js"></script> 
  <link rel="profile" href="https://gmpg.org/xfn/11">


What could be? Where to dig?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
galaxy, 2020-06-22
@makbori

You have a mess there in general in HTML, look carefully: two head sections, html closes to the footer, body closes twice.
Files not found in second head

S
Seanyr, 2020-06-22
@Seanyr

There, next to the error, there is always a link to the part of the code that causes it.
Follow the link, and then dig what and where exactly in this place can be loaded wrong.

Screen
iQnqhui.jpg

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question