• Hello,

    I downloaded the underscore starter template… and cleared the function file so i can start fresh..

    I was putting this into my template from :
    http://generatewp.com/register_style/

    // Register Style
    function demo_styles() {
    
    	wp_register_style( 'menu', 'css/menu.css', false, false );
    	wp_enqueue_style( 'menu' );
    
    }
    
    // Hook into the 'wp_enqueue_styles' action
    add_action( 'wp_enqueue_styles', 'demo_styles' );

    I figured this is the proper way to put the CSS styles … but it is not loading anything… even if i remove wp_register_style and replace it with wp_enqueue_style …

    i check the source code.. and nothing shows up… i even copied the same lines to the twenty fourteen template and it won’t work..

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘wp_enqueue_styles not doing anything…’ is closed to new replies.