Site icon Hip-Hop Website Design and Development

Making a WP plugin and having points linking CSS stylesheet inside features

Making a WP plugin for third social gathering utilization (first time doing this), and sometimes hyperlinks to stylesheets are put within the header or within the theme generated choices panel. That is positive for private use however not for this.

I discovered wp_enqueue_style through a search on right here, and I am making an attempt to use it. Under is the code I’ve proper now.

operate wpse_load_plugin_css() {
    $plugin_url = plugin_dir_url( __FILE__ );

    wp_enqueue_style( 'model', $plugin_url . 'model.css' );
}
add_action( 'wp_enqueue_scripts', 'wpse_load_plugin_css' );




operate take a look at() {
international $con;
wp_enqueue_style('model');

   ** the majority of my code - question and output **

}

None of my styling is working at this level. I’ve cleared the cache, and this early stage, simply making an attempt to alter the dimensions of fonts.

Am I heading in the right direction?

Thanks.