I'm not able to override the "Total Control HTML5 Audio Player Basic" plugin default css file.
I've copied the plugin css default content inside style.css file in my child theme, and then I've tried to change some stuff, but the new css rule are not displayed.
I've checked with Firebug that the custom css file is loaded after the default file, so I don't understand why the new rules are not applied.
I've also tried with this suggestion: Override CSS settings of plugins
add_filter( 'style_loader_src', 'wpse106104_replace_stylesheet' );
function wpse106104_replace_stylesheet( $stylesheet_src, $handle ){
if( 'plugin-script-handle' == $handle ){
$stylesheet_src = get_template_directory_uri() . '/css/themes-copy-of-plugin.css';
}
return stylesheet_src;
}
but this only throws these errors:
Warning: Missing argument 2 for wpse106104_replace_stylesheet() in /home/me/MyServer/myproject/wp-content/themes/twentyfourteen-child/functions.php on line 451
Notice: Undefined variable: handle in /home/me/MyServer/myproject/wp-content/themes/twentyfourteen-child/functions.php on line 453
Notice: Use of undefined constant stylesheet_src - assumed 'stylesheet_src' in /home/me/MyServer/myproject/wp-content/themes/twentyfourteen-child/functions.php on line 456
Warning: Missing argument 2 for wpse106104_replace_stylesheet() in /home/me/MyServer/myproject/wp-content/themes/twentyfourteen-child/functions.php on line 451
Any suggestion?