How to enqueue style in WordPress plugin from theme files?

IF I’m understanding your question correctly, what you want to do is enqueue scripts and stylesheets using a plugin the same way you do with a theme… …if that’s the case then it’s really not that different: function yourplugin_enqueue_frontend() { wp_enqueue_style( ‘yourplugin-front’, plugins_url( ‘yourplugin-front.css’, __DIR__ ), array(), ‘1.0’ ); wp_enqueue_script( ‘yourplugin-front’, plugins_url( ‘yourplugin-front.js’, __DIR__ ), … Read more