$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>themes - Wordpress 404 on style.css but not on all pages|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

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

matteradmin8PV0评论

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.

Post a comment

comment list (0)

  1. No comments so far