I'm having difficulties adding a front end style from a plugin. I have the following class created: class CCYTFeatured { public function __construct(){ add_action( 'wp_enqueue_scripts', array($this, 'cc_yt_scripts' )); } // Load CSS FRONT public function cc_yt_scripts() { wp_register_style( 'cc_yt-style', plugins_url( '/css/cc_yt.css', __FILE__ ) ); wp_enqueue_style('cc_yt-style'); } } I'm then calling the class in a theme page: $cc_yt = new...
Originally asked by Jpv on Stack Exchange (stackoverflow) (CC BY-SA 4.0).