This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Is Bootstrap included with this premium theme?

11 years ago · Last reply by Andrew Misplon 11 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

1
  1. Andrew Misplon Staff 11 years, 1 month ago

    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.

Have a different question or issue?

Start New Thread