Skip Navigation

[Resolved] I want to using starter them without base bootstrap styles.

This support ticket is created 7 years ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 3 replies, has 2 voices.

Last updated by Christian Cox 7 years ago.

Assisted by: Christian Cox.

Author
Posts
#583015

I want use just bootstrap grid, without base style for menu buttons, links color and other, It is posible?

Now, when i use bootsrap strater theme, i must rewrite styles for menu (it is for example) and it is wrong. I want to write styles from scratch, is this possible?

#583112

Hi, there's not a good way to limit Toolset Starter Theme's built-in Bootstrap styles. You can override them with your own styles, or you can supply your own compiled Bootstrap and turn off Toolset Starter Theme's included Bootstrap. To do that, go to Toolset > Settings > General and select "The theme or another plugin is already loading Bootstrap 3.0". Compile your own custom Bootstrap package here:
hidden link

Then enqueue the custom Bootstrap stylesheets and script elements by creating a custom plugin or by modifying your child theme's functions.php file.

#583204
2017-10-30_09-27-22.png

Thanks for the answer. I walked: Toolset > Settings > General and "The theme or another plugin is already loading Bootstrap 3.0" has already been selected.

So I do not quite understand what I need to do? Do I need to deactivate the Toolset Starter Theme's or something else?

#583643

Okay next you will dequeue the parent theme Bootstrap stylesheet and JavaScript files in your child theme, then enqueue your own files. If you're using the Toolset Starter Child theme, you will find the wp_enqueue_scripts block at the top of the functions.php file. Dequeue the parent Bootstrap build by replacing everything above the "Load custom cells types for Layouts plugin..." comment with the following code:

 
<?php
if ( ! function_exists( 'ref_enqueue_main_stylesheet' ) ) {
	function ref_enqueue_main_stylesheet() {
		if ( ! is_admin() ) {
			wp_enqueue_style( 'main', get_template_directory_uri() . '/style.css', array(), null );
			wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array(), null );
			wp_deregister_style( 'bootstrap_css' );
			wp_deregister_script( 'wpbootstrap_bootstrap_js' );
			wp_register_style( 'bootstrap_css', 'path/to/bootstrap.min.css' , array(), null );
			wp_register_script( 'wpbootstrap_bootstrap_js', 'path/to/bootstrap.min.js', array( 'jquery' ), null, true );
			wp_enqueue_style( 'bootstrap_css' );
			wp_enqueue_script( 'wpbootstrap_bootstrap_js' );
		}
	}
	add_action( 'wp_enqueue_scripts', 'ref_enqueue_main_stylesheet', 100 );
}

Then go to Appearance > Customize > Advanced Settings and uncheck "Load theme CSS".