Site icon Hip-Hop Website Design and Development

Why will not my Customized CSS Load

I am within the means of including a jQuery plugin to a website I am engaged on. For sure it requires loading a customized script; additionally a customized stylesheet.

Beginning with the stylesheet I have been making an attempt to go about it the conventional means by using wp_register_style() and wp_enqueue_style() like so:

if ( ! function_exists( 'add_additional_css' ) ) {
    operate add_additional_css() {
        wp_enqueue_style( 'webmarket-child', get_stylesheet_uri() , array( 'most important' ) );
        wp_register_style( 'slick', get_stylesheet_directory_uri() . '/slick/slick.css', array( 'jquery' ) );
        wp_enqueue_style( 'slick' );
    }
    add_action( 'wp_enqueue_scripts', 'add_additional_css', 20 )

That is from the features.php of my baby theme which is why it is also together with an enqueued type of ‘webmarket-child’.

I’ve checked and double checked my code and I do not assume something is fallacious however the stylesheet is not loading.

What might be stopping this from loading?

Sidebar: After I was initially creating the kid theme, I used to be having points getting the kid stylesheet to load was properly. Solely by including the above code was I capable of make the stylesheet load. The most effective observe of:

add_action( 'wp_enqueue_scripts', 'enqueue_parent_theme_style' );
    operate enqueue_parent_theme_style() {
    wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/type.css' );
}

did not work. I can not assist however assume that what precipitated that to fail additionally has one thing to do with why I can not get an extra stylesheet to load.