Title: Style.css and Bootstrap CDN not loading in Function.php
Last modified: July 17, 2021

---

# Style.css and Bootstrap CDN not loading in Function.php

 *  Resolved [warda khan](https://wordpress.org/support/users/warda-khan/)
 * (@warda-khan)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/style-css-and-bootstrap-cdn-not-loading-in-function-php/)
 *     ```
       <?php 
   
       function load_css(){
   
           wp_enqueue_style('load_css', get_theme_file_uri('/style.css'));
           wp_enqueue_style('bootstrap-cdn-css', 'https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css');
           wp_enqueue_script('bootstrap-cdn-js', 'https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.min.js', 'jquery', false, true);
   
           // 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', 'load_css');
   
       ?>
       ```
   

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

 *  Thread Starter [warda khan](https://wordpress.org/support/users/warda-khan/)
 * (@warda-khan)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/style-css-and-bootstrap-cdn-not-loading-in-function-php/#post-14672051)
 * In style.css, I have given body { color: orange; } it is not showing me orange
   color for heading in index.php, it means style.css not loaded correctly. and 
   I want to load boostrap.js file for footer and style.css must work correctly.
   Could somebody help me to solve the error?
 *  [hiyottaunits](https://wordpress.org/support/users/hiyottaunits/)
 * (@hiyottaunits)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/style-css-and-bootstrap-cdn-not-loading-in-function-php/#post-14673386)
 * Hi [@warda-khan](https://wordpress.org/support/users/warda-khan/) – Have you 
   checked the browser console to make sure those files are loaded normally?
 *  Thread Starter [warda khan](https://wordpress.org/support/users/warda-khan/)
 * (@warda-khan)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/style-css-and-bootstrap-cdn-not-loading-in-function-php/#post-14673464)
 * Wrong file name `function.php`. It is `Functions.php`. Problem solved. 🙂
    -  This reply was modified 4 years, 10 months ago by [warda khan](https://wordpress.org/support/users/warda-khan/).

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

The topic ‘Style.css and Bootstrap CDN not loading in Function.php’ is closed to
new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [warda khan](https://wordpress.org/support/users/warda-khan/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/style-css-and-bootstrap-cdn-not-loading-in-function-php/#post-14673464)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
