Results 1 to 2 of 2

Thread: enqueue_styles() function printing twice parent css

  1. #1
    Thread Starter
    tradeamillion's Avatar
    Join Date
    Mar 2012
    Location
    New York
    Posts
    1,076
    Thanks
    82
    Thanked 12 Times in 12 Posts

    enqueue_styles() function printing twice parent css

    function theme_enqueue_styles() {
    $parent_style = 'parent-style';
    wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
    wp_enqueue_style( 'child-style',
    get_stylesheet_directory_uri() . '/style.css',
    array( $parent_style )
    );
    }
    add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );


    I just notice that when i use that function the parent css get printed twice in header
    Computers are incredibly fast, accurate, and stupid: humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination.

  2. #2
    Thread Starter
    tradeamillion's Avatar
    Join Date
    Mar 2012
    Location
    New York
    Posts
    1,076
    Thanks
    82
    Thanked 12 Times in 12 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Computers are incredibly fast, accurate, and stupid: humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [PLUGIN NEEDED] Printing ads including images
    By bengt_helgesson in forum ClassiPress General Discussion
    Replies: 0
    Last Post: January 21st, 2014, 02:18 AM
  2. Ad plugin for printing, email etc.
    By grumpys in forum Report ClassiPress Bugs
    Replies: 2
    Last Post: June 7th, 2012, 12:23 AM