Css file not found issue
-
Hi,
I started getting errors in console regarding the missing CSS file.
public function register_frontend_styles()
{
$sby_pro = !sby_is_pro() ? '-free' : '';
wp_register_style(
'sby-styles',
SBY_PLUGIN_URL . 'css/sb-youtube'. $sby_pro .'.min.css',
array(),
SBYVER
);
}
add_action('elementor/frontend/after_register_styles', [$this, 'register_frontend_styles'], 10);this function generated stylesheet by the name sb-youtube-free.min.css, but in the CSS folder there was no file by these name. As a result it generated the missing CSS file error in the console. Currently I had commented the action hook and it solved the issue as of now. But is there any other way to remove or eliminate this error?
Thanks
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.