404 error Loading CSS nice-options.css
This support request was posted in BBQ by busymandan
- busymandan June 30, 2015 at 10:32 pm
Hey Juan,
I am having an issue where every site on my page is getting an error loading the following css stylesheet that isn’t found on the server.
Here’s the HTML:
The workaround I am going to do now is just put an empty CSS file with that name on the server.
Do you know why this issue was happening?
It doesn’t seem to effect how the page looks, there are no visually CSS errors.
Thanks,
Danbusymandan June 30, 2015 at 10:35 pmI found the issue. In the theme files nice-options.css in is the directory ./wp-content/themes/bbq/includes/css/nice-options.css
But the HTML is looking in ./wp-content/themes/bbq/includes/assets/css/nice-options.css
What is the best way to correct this issue?
Juanfra Aldasoro July 1, 2015 at 2:08 amHi Dan,
Thanks for writing.
I could see the contents of the nice-options.css file. At the same time I’m not getting the error. Are you getting the error in any page in particular?
Thank you,
Juan.busymandan July 1, 2015 at 4:01 amI was getting the error on all of the pages.
The reason you don’t see the error is because I fixed the error with a workaround by copying the nice-options.css file from ./wp-content/themes/bbq/includes/css/nice-options.css (Where it was originally packaged with the theme)
TO
./wp-content/themes/bbq/includes/assets/css/nice-options.css (Since this is where the main theme was looking for the file)The contents of the nice-options.css is empty with just the comment it was packaged with:
/* Nice Options CSS */
busymandan July 1, 2015 at 4:05 amI ran a grep on your original theme files and it looks like these are the 2 cases that are referring to ./includes/assets/css/nice-options.css
./includes/theming/style.php: wp_enqueue_style( ‘nice-options-styles’, get_template_directory_uri() . ‘/includes/assets/css/nice-options.css’ );
./includes/theming/typography.php: wp_enqueue_style( ‘nice-options-styles’, get_template_directory_uri() . ‘/includes/assets/css/nice-options.css’ );
The problem is when your theme doesn’t have a /includes/assets folder by default.
Juanfra Aldasoro July 1, 2015 at 2:44 pmHi,
Thanks for the follow up and the heads up. We’ll be fixing this issue.
The file is empty because it is meant to load the styles dynamically.
Thanks again,
Juan.
You must be logged in to reply to this topic.