Home Forums Theme support Problem with Ladies Theme

This topic contains 4 replies, has 2 voices, and was last updated by  7Theme Support 5 years, 10 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • I want to use Bootstrap to make some modifications like adding tabs with dynamic content which I simply cant figure out how to do with your tabs. I have everything as I would like now with the bootstrap tabs but when I add Bootstrap the whole site seems to lose the font setting. Is there any way to avoid that ?

    Hi Alexander,

    normally you have to include the bootstrap css file before the theme style.css file, then it should work.

    Have you insert the css file with an action hook or directly in the header.php file?

    Hi, I enqueued those 2 Bootstrap files in functions.php.

    function theme_add_bootstrap() {
    	wp_enqueue_style( 'bootstrap-css', get_template_directory_uri() . '/bootstrap/css/bootstrap.min.css' );
    	wp_enqueue_script( 'bootstrap-js', get_template_directory_uri() . '/bootstrap/js/bootstrap.min.js', array(), '3.0.0', true );
    }
     
    add_action( 'wp_enqueue_scripts', 'theme_add_bootstrap' );

    Shall I add the enqueue for bootstrap in callscripts.php before the style.css load ? Or where else shall i place it so it works right ?

    Hi Alexander,

    yes, please place the bootstrap files before the style.css file, because esle bootstrap will overwrite the theme styles.

    You can use also “import” on top of the style.css file to load the file, more information how to use the “import” rule here:

    http://www.cssnewbie.com/css-import-rule/

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.