themes - Wordpress 404 on style.css but not on all pages

admin2025-06-02  1

I have noticed an issue when running a site audit on all of my websites using SEMrush I picked up the error:

issues with broken internal JavaScript and CSS files

Examples

.css .css .css

All the sites are WordPress and some use a child theme and some do not, the example site does use a child theme.

The style.css error is currently on 34 pages but not all.

I did update the permissions after editing the files but nothing has worked, the current permissions are dir 755 and the stylesheet is 644.

I am not sure what the issue is as it does not look like the permissions are the issue and if it was the child theme not loading the stylesheet then it would break across all the pages.

I have noticed an issue when running a site audit on all of my websites using SEMrush I picked up the error:

issues with broken internal JavaScript and CSS files

Examples

https://stage.fusionaccountants.co.uk/about-us/style.css https://stage.fusionaccountants.co.uk/accountants-east-london/style.css https://stage.fusionaccountants.co.uk/accountants-harrow/style.css

All the sites are WordPress and some use a child theme and some do not, the example site does use a child theme.

The style.css error is currently on 34 pages but not all.

I did update the permissions after editing the files but nothing has worked, the current permissions are dir 755 and the stylesheet is 644.

I am not sure what the issue is as it does not look like the permissions are the issue and if it was the child theme not loading the stylesheet then it would break across all the pages.

Share Improve this question asked Mar 4, 2019 at 21:07 Ashley PreenAshley Preen 31 bronze badge
Add a comment  | 

1 Answer 1

Reset to default 0

By looking at the source of /about-us the culprit seems to be the contact form in the footer, present in more pages of your website.Look here.

Look at the Code module inside the divi builder, you'll see a <link> tag referring to a style.css: that's the code that's causing your 404. By the fact that the link tag is placed before a form I'm getting you wanted to style the form with some custom css? In that case just use the Divi theme options page and paste the css there, giving a proper id or class to the form.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1748843306a314186.html

最新回复(0)