Problem: I would like to use my own custom CSS and turn off the Toolset Starter Theme CSS, and I would like to use Bootstrap 4.
Solution: You may deactivate Toolset Starter Theme CSS by going to Appearance > Customize > Advanced Settings. Edit your child theme to dequeue Bootstrap and re-enqueue it using your own Bootstrap 4 styles.
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.4.css' , array(), null ); wp_register_script( 'wpbootstrap_bootstrap_js', 'path/to/bootstrap.4.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 ); }
Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.
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 6 years, 7 months ago.
Assisted by: Christian Cox.
The forum ‘Types Community Support’ is closed to new topics and replies.