Home › Forums › WooCommerce Personalized Product Options Manager (PPOM) › Remove Boostrap and any other css This topic has 8 replies, 3 voices, and was last updated 5 years, 5 months ago by Jane Brian. Viewing 9 posts - 1 through 9 (of 9 total) Author Posts December 21, 2018 at 4:13 pm #10152 SinklarParticipant Hello, What is the proper way to unload all the styling clutter you add to the front-end? I mean the Bootstrap styles, etc. Thanks! December 25, 2018 at 8:25 am #10172 nmediaKeymaster Hi, here is hook (add this to your theme’s functions.php file) to remove PPOM bootstrap: add_filter('ppom_bootstrap_css', function($bs){ return false; }); January 5, 2019 at 6:04 pm #10232 SinklarParticipant Hello, This hook disables the scripts as well, making conditions to not work anymore. Is it possible to only disable bootstrap css? I think it is this line: wp_enqueue_style( 'ppom-bootstrap', $ppom_bs_css); But wp_dequeue_style( 'ppom-bootstrap'); is not working. January 7, 2019 at 6:43 am #10236 nmediaKeymaster Yes it wp_enqueue_style( ‘ppom-bootstrap’, $ppom_bs_css); make sure you are calling wp_dequeue_style( 'ppom-bootstrap'); inside init or recommended hooks. January 7, 2019 at 10:03 am #10244 SinklarParticipant I hooked in wp_footer. Thanks! add_action('wp_footer', 'custom_ppom_remove_style'); function custom_ppom_remove_style() { wp_dequeue_style('ppom-bootstrap'); wp_deregister_style('ppom-bootstrap'); } January 9, 2019 at 4:56 pm #10261 nmediaKeymaster please use in init like add_action('init', 'custom_ppom_remove_style'); January 12, 2019 at 3:29 pm #10297 SinklarParticipant Well, init doesn’t work but wp_footer does, so… January 13, 2019 at 4:05 pm #10304 nmediaKeymaster Ok that’s fine if it works with wp_footer 🙂 July 19, 2019 at 3:14 pm #13033 Jane BrianKeymaster Hi Sinklar It has been a long while for this topic, so we are closing this. Author Posts Viewing 9 posts - 1 through 9 (of 9 total) The topic ‘Remove Boostrap and any other css’ is closed to new replies.