Monday, December 19, 2022
HomeWordPress Developmentfeatures - wp_head not injecting css

features – wp_head not injecting css


I am making an attempt to inject a mode.css script into my front-page.php. Not one of the types load. Within the tutorials, while you examine web page supply, all of the CSS must be there, nevertheless it merely exhibits the wp_head() script with out injecting something. Any recommendation is tremendously appreciated!

front-page.php

<head>
    <php? 
        wp_head(); 
    ?>
</head> 

features.php

<?php

perform load_scripts(){
    echo "Hi there Capabilities!";    
    wp_enqueue_style('any-style-name',  get_stylesheet_directory_uri() . '/type.css');

}


add_action( 'wp_enqueue_scripts', 'load_scripts');  

?>

folder construction

enter image description here

Different scripts I’ve tried utilizing in “load_scripts”

    wp_enqueue_style('any-style-name', get_stylesheet_uri());
  wp_enqueue_style('anydescription', get_stylesheet_uri(), array(), "1.0", 'all'); 
    wp_enqueue_style("anydescription", get_template_directory_uri() . "/type.css", array(), "1.0", "all");

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments