Title: Adding bootstrap CSS?
Last modified: July 17, 2018

---

# Adding bootstrap CSS?

 *  Resolved [conciseac](https://wordpress.org/support/users/conciseac/)
 * (@conciseac)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/adding-bootstrap-css/)
 * Hi, I was wondering – is it possible to call Bootstrap CSS into an Ocean WP theme?
   Of course, I can experiment but I just wanted to understand if that is ‘possible’
   with Ocean WP?
 * The reason I ask is that Bootstrap might bundle a bunch of conflicting CSS Rules?

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

 *  Theme Author [oceanwp](https://wordpress.org/support/users/oceanwp/)
 * (@oceanwp)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/adding-bootstrap-css/#post-10499636)
 * Hello, it is possible for sure because I saw some users add it, if you see CSS
   issues, you can still reach me 🙂
    Logically, you will have a problem with the
   navigation, use this code to solve it: [https://docs.oceanwp.org/article/506-menu-is-gone-when-using-bootstrap](https://docs.oceanwp.org/article/506-menu-is-gone-when-using-bootstrap)
 *  Thread Starter [conciseac](https://wordpress.org/support/users/conciseac/)
 * (@conciseac)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/adding-bootstrap-css/#post-10499670)
 * Yes I am trying it out now. One simple work around would be to simply customize
   the boostrap that you need…
 * I am trying to load the .css via the child theme functions.php but am having 
   limited joy…
 * Can you see where I might be going wrong?
 * Thanks v much BTW
 * function weather_scripts() {
 *  if ( is_page_template(‘page-alert-amber.php’)):
 *  wp_enqueue_style(‘bootstrap css’, get_template_directory_uri() . ‘/bootstrap/
   css/test.css’, array(), ‘0.1’);
 *  wp_enqueue_script(‘bootstrap js’, get_template_directory_uri() . ‘/bootstrap/
   js/test.js’, array(), ‘0.2’);
    endif; } add_action(‘wp_enqueue_scripts’, ‘weather_scripts’);
 *  Theme Author [oceanwp](https://wordpress.org/support/users/oceanwp/)
 * (@oceanwp)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/adding-bootstrap-css/#post-10502297)
 * Hello, replace “get_template_directory_uri” by “get_stylesheet_directory_uri”,
   the first function is for a parent theme, the second for child theme and as you
   are in a child theme, you need to use the second function.

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

The topic ‘Adding bootstrap CSS?’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/oceanwp/4.1.5/screenshot.png)
 * OceanWP
 * [Support Threads](https://wordpress.org/support/theme/oceanwp/)
 * [Active Topics](https://wordpress.org/support/theme/oceanwp/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/oceanwp/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/oceanwp/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [oceanwp](https://wordpress.org/support/users/oceanwp/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/adding-bootstrap-css/#post-10502297)
 * Status: resolved