Results 1 to 3 of 3

Thread: Child theme styles order

  1. #1
    Thread Starter
    Expired Customer yerprog's Avatar
    Join Date
    Mar 2015
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Child theme styles order

    Hi, I have created child theme

    My current functions.php files looks like this

    <?php
    add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );

    function theme_enqueue_styles() {
    wp_enqueue_style( 'style-name', get_template_directory_uri() . '/styles/urban.css');
    wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
    }

    the problem is that Style files are sorted wrong way, and have different priorities. Sometimes foundation.min.css file has higher priority.
    Could you help me with that? what should be the $deps (array) (optional) Array or any other way to sort all css files in child theme?

    Or please tell me other way of creating child theme for hirebee.

  2. #2
    Thread Starter
    Expired Customer yerprog's Avatar
    Join Date
    Mar 2015
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    dimitris's Avatar
    Join Date
    Oct 2011
    Location
    Earth
    Posts
    20,617
    Thanks
    222
    Thanked 1,873 Times in 1,770 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Jomark Overriding Order-checkout.php in child theme
    By benoit in forum Help Using JobRoller
    Replies: 3
    Last Post: December 11th, 2014, 03:48 AM
  2. order by Price,Popular not work in child theme Ultra Classified
    By kullawat in forum ClassiPress Sorted Ads
    Replies: 4
    Last Post: October 29th, 2014, 01:08 PM
  3. styles\blue css child-theme
    By tbase in forum Vantage General Discussion (Legacy)
    Replies: 1
    Last Post: August 29th, 2013, 01:03 PM