Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Theme Bootstrap conflicting with plugin Bootstrap

Home / Forums / Virtue Theme / Theme Bootstrap conflicting with plugin Bootstrap

This topic is: Not Resolved
[Not Resolved]
Posted in: Virtue Theme
April 19, 2016 at 7:26 am

Hello,
I have set up a website using the Virtue Premium theme and have installed the plugin WP Customer Area. The plugin also uses Bootstrap and in the documentation states that it is known to conflict, usually, when the theme also uses Bootstrap. The suggestion is to disable the theme’s Bootstrap using this code in a child’s theme functions file: `function fix_cuar_and_theme_bootstrap_conflict(){
if (function_exists(‘cuar_is_customer_area_page’)
&& (cuar_is_customer_area_page(get_queried_object_id())
|| cuar_is_customer_area_private_content(get_the_ID())))
{
wp_dequeue_script(‘bootstrap-scripts’);
wp_dequeue_style(‘bootstrap-styles’);
}
}
add_action(‘wp_enqueue_scripts’, ‘fix_cuar_and_theme_bootstrap_conflict’, 20);`
My site is a static website. I’m not using the Woocommerce aspect. Will that affect the way the site operates? If not, could you tell me how to disable it?
Site URL is:
Thanks for your help!
Jan Green

  • The forum ‘Virtue Theme’ is closed to new topics and replies.