How to Remove MailPoet CSS

MailPoet is a free email newsletter plugin for WordPress. It is a powerful email marketing software for WordPress users and bloggers. It comes with deep integration with WordPress as a plugin and great email delivery rates comparable with other email marketing software.

I am using this plugin for some of my projects. But I couldn’t tolerate the CSS file it adds.

MailPoet adds mailpoet_public.css file. If you want to remove or dequeue this style sheet, add following code to your theme’s functions.php file:

add_filter('print_styles_array', 'custom_print_styles_array');
function custom_print_styles_array($styles){
	$styles_to_remove = array('mailpoet_public');
	if(is_array($styles) && count($styles) > 0){
		foreach($styles as $key => $code){
			if(in_array($code, $styles_to_remove)){
	return $styles;


Remove google fonts added by MailPoet

After installing MailPoet, you will notice that it adds some Google fonts. I suggest you remove those fonts. To do so, paste following code into your theme’s functions.php file:

add_filter('mailpoet_display_custom_fonts', function () {return false;});

Comment below to let me know if this solution helps.

Spread the love

A teacher by profession, a traveler by passion and a netizen by choice.

Morshed Alam

You use WordPress! Why don't we share our experience! It may be a tutorial, tips, tricks or about security, performance or WordPress news. Write Today

Leave a Comment

Your email address will not be published. Required fields are marked *