• Resolved conciseac

    (@conciseac)


    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

    (@oceanwp)

    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

    Thread Starter conciseac

    (@conciseac)

    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

    (@oceanwp)

    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.