Razorfrog Web Design Razorfrog Web Design
  • Home
  • About
  • Services
    • Responsive Web Design
    • E-Commerce Stores
    • Logo & Brand Identity
    • Search Engine Optimization
    • Copywriting & Editing
    • Photography & Imaging
  • Portfolio
  • News
  • Contact
Close
  • Home
  • About
  • Services
    • Responsive Web Design
    • E-Commerce Stores
    • Logo & Brand Identity
    • Search Engine Optimization
    • Copywriting & Editing
    • Photography & Imaging
  • Portfolio
  • News
  • Contact

Disable Default Punch Fonts from Essential Grid Plugin

April 19, 2017

If you’ve used the Essential Grid plugin lately, you’ve likely noticed that the “Punch Fonts” module is a bit buggy and automatically re-activates three default fonts every time that the EG plugin is reactivated (and/or updated depending on how you run updates). We grew tired of keeping an eye out for these unnecessary fonts being loaded and decided to hide the Punch Fonts page entirely using Admin Menu Editor and force the three default fonts (Open Sans, Raleway, Droid Serif) to stay off the site with the following snippet. We recommend adding this code to a custom site functionality plugin, but it can also be added to a child theme’s functions.php file.

////////////////////////////////////////////////////////////
// deregister default punch fonts
////////////////////////////////////////////////////////////
add_action( 'wp_print_styles', 'rzf_deregister_punch', 100 );
function rzf_deregister_punch() {
	wp_deregister_style( 'tp-open-sans' );
	wp_deregister_style( 'tp-raleway' );
	wp_deregister_style( 'tp-droid-serif' );
}
Posted in: Code Author: Max Elman

Share

FacebookTwitter

2 Comments

  1. Avatar of Tanmoy Biswas
    Tanmoy Biswas
    January 13, 2020 at 10:41 am / Reply

    Thank you!

  2. Avatar of Pedro
    Pedro
    February 24, 2020 at 9:28 am / Reply

    Very useful, thanks!

Leave a Reply / Cancel Reply

  • Prev
  • Next

© 2008-2023 RAZORFROG WEB DESIGN
Sitemap • Terms of Service • Privacy • Cookie Policy • Accessibility
415-480-4587 • 1032 Irving St #984
, San Francisco, CA 94122
Powered by WordPress