• Resolved leon1025

    (@leon1025)


    thanks for the great theme.here is my problem:
    l create a child theme and l wanna add another stylesheet whose name is “responsive.css” after loading the style.css whose id is “bootstrap-basic-style-css”.the code in child-theme’s function.php is :

    add_action( 'wp_enqueue_scripts', 'my_module_style' );
    function my_module_style() {
      if(true){
        wp_register_style( 'responsive',  get_stylesheet_directory_uri().'/responsive.css', array(), null, 'all' );
        wp_enqueue_style( 'responsive' );
      } 
    }

    but responsive.css loaded before the style.css whose name is “bootstrap-basic-style-css” ,please help me how to slove it .thank you .

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘order the stylesheet in child theme’ is closed to new replies.