Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter Daniel_Fernandez

    (@daniel_fernandez)

    Specifically, how you use enqueueto create a hierarchy (ie dependencies).

    When I tried using the example and following the format, I end up with the exact same styling. I assume I’m just using the dependencies wrong, but here is what I did when I tried doing it.

    <?php
    //Load Theme css//
    
    function theme_styles()
    {
      wp_register_style('bootstrap-responsive', get_template_directory_uri().'/css/bootstrap-responsive.css', array('style.css'), '1.0', 'screen');
      wp_register_style('flat', get_template_directory_uri().'/css/flat,css', array('style.css, bootstrap-responsive.css'), '1.0', 'screen');
    
      // enqueing:
      wp_enqueue_style('main', get_template_directory_uri() . '/style.css');
      wp_enqueue_style('bootstrap-responsive');
      wp_enqueue_style('flat');
    }
    add_action('wp_enqueue_scripts', 'theme_styles');
    
    ?>
Viewing 1 replies (of 1 total)