Home>Support>Is Bootstrap included with this premium theme?

Is Bootstrap included with this premium theme?

Hi, is the Bootstrap framework included with Vantage Premium?

I have added Bootstrap myself, but am having troubles with my child them style.css being recognized.

I can only use Custom CSS in the admin dashboard to edit styles.

This is what my functions.php file looks like:

<?php

function theme_enqueue_styles() {


    wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
    wp_enqueue_style( 'child-style', get_stylesheet_uri(), array( 'parent-style' ) );
	
	wp_register_style( 'bootstrap-css', get_template_directory_uri() . '/js/bootstrap.min.js', array('jquery'), NULL, true );
    wp_enqueue_style( 'bootstrap-css' );
	wp_register_script( 'bootstrap-js', get_template_directory_uri() . '/bootstrap/css/bootstrap.min.css', false, NULL, 'all' );
    wp_enqueue_script( 'bootstrap-js' );
}

add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
remove_filter('the_content', 'wpautop'); remove_filter('the_content', 'wpautop');

URL: http://staging.iowabison.com/wordpress

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 8 months ago Andrew Misplon
    Hi, I Work Here

    Hi Tyler

    Thanks for reaching out.

    Vantage doesn’t use Bootstrap.

    Looks like you’re going wrong enqueueing the child theme stylesheet. This can of course be in the same function, here is a copy of my vanilla child theme’s function file.

    /**
     * Enqueue the parent theme stylesheet.
     */
    
    add_action( 'wp_enqueue_scripts', 'vantage_parent_style' );
    function vantage_parent_style() {
        wp_enqueue_style( 'parent-theme', get_template_directory_uri() . '/style.css' );
    }
    
    /**
     * Enqueue the child theme stylesheet.
     */
    
    add_action( 'wp_enqueue_scripts', 'vantage_child_style', 20 );
    function vantage_child_style() {
        wp_enqueue_style( 'child-theme', get_stylesheet_uri() );
    }
    

    Hope that helps.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More