Error attempting to load style.css for every template
-
Hi Brains Trust!
I am developing a site using the TwentySeventeen theme. All is going well, except…When each page loads the code is trying, and failing, to load a style.css file for each post, tag or template (I see the following error when using inspect element in Chrome. Error: GET https://ebikefaq.com/faq/battery/battery-type/battery-types/style.css net::ERR_ABORTED).
Also, when I run a link check such as https://www.deadlinkchecker.com/ I get a series of dead links related to these ‘missing’ stylesheets.
404 Not Found https://ebikefaq.com/category/faq/unanswered/style.css link/href
404 Not Found https://ebikefaq.com/faq/battery/battery-life/charge-an-electric-bike/style.css link/href
404 Not Found https://ebikefaq.com/faq/battery/battery-life/bike-battery-care/style.css link/href
404 Not Found https://ebikefaq.com/answer-a-question/style.css link/hrefI have four questions:
- Is there supposed to be a style.css for every post/page/template etc?
- Do you have any idea why my files are missing or why some kind of redirect is not occurring?
- Can you suggest a fix?
- Am I correct in thinking that having these broken links may impact my SEO?
I assume that this is related to the code in the functions.php:
<?php add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' ); function my_theme_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); } ?>
BTW: The child theme stylesheet is working fine.
Thank in advance.
Daniel
- This topic was modified 6 years, 12 months ago by .
- This topic was modified 6 years, 12 months ago by .
- This topic was modified 6 years, 12 months ago by .
The page I need help with: [log in to see the link]
- The topic ‘Error attempting to load style.css for every template’ is closed to new replies.