Title: Remove stylesheet
Last modified: June 13, 2020

---

# Remove stylesheet

 *  Resolved [DamirCalusic](https://wordpress.org/support/users/webkreativ/)
 * (@webkreativ)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/remove-stylesheet-3/)
 * Hi,
 * I wonder how I can deregister/dequeue the `mailpoet_public` css aswell as the`
   mailpoet_custom_fonts_css` that are printed out in the body of the website?
 * Best regards.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [DamirCalusic](https://wordpress.org/support/users/webkreativ/)
 * (@webkreativ)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/remove-stylesheet-3/#post-13015466)
 * I have solved this really simple by altering the print styles filter.
 *     ```
       // Force removal of styles
       add_filter('print_styles_array', 'custom_print_styles_array');
       /**
        * Force removal of styles that are not enqued properly
        */
       function custom_print_styles_array($styles){
       	$styles_to_remove = array(	
       		'mailpoet_public',				// plugins/mailpoet
       		'mailpoet_custom_fonts_css' 	// plugins/mailpoet
       	);
   
       	if(is_array($styles) && count($styles) > 0){
       		foreach($styles as $key => $code){
       			if(in_array($code, $styles_to_remove)){
       				unset($styles[$key]);
       			}
       		}
       	}
   
       	return $styles;
       }
       ```
   
 *  [mmoollllee](https://wordpress.org/support/users/mediengestalter/)
 * (@mediengestalter)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/remove-stylesheet-3/#post-13518051)
 * Doesn’t work for me..

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Remove stylesheet’ is closed to new replies.

 * ![](https://ps.w.org/mailpoet/assets/icon-256x256.png?rev=3284564)
 * [MailPoet - Newsletters, Email Marketing, and Automation](https://wordpress.org/plugins/mailpoet/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mailpoet/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mailpoet/)
 * [Active Topics](https://wordpress.org/support/plugin/mailpoet/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mailpoet/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mailpoet/reviews/)

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [dequeue](https://wordpress.org/support/topic-tag/dequeue/)
 * [deregister](https://wordpress.org/support/topic-tag/deregister/)
 * [removal](https://wordpress.org/support/topic-tag/removal/)
 * [style](https://wordpress.org/support/topic-tag/style/)

 * 2 replies
 * 2 participants
 * Last reply from: [mmoollllee](https://wordpress.org/support/users/mediengestalter/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/remove-stylesheet-3/#post-13518051)
 * Status: resolved