MyListing Club

Prevent MyListing From Loading Material Icons

Building better MyListing websites. One code snippet at a time.

Overview

The Prevent MyListing From Loading Material Icons code snippet allows for greater flexibility within a MyListing website.

This is part of an overall solution to Host MyListing Material Icons Locally for Better Performance.

Implementation

  1. Grab the code snippet.
  2. Follow the provided instructions.
  3. Save your changes.
				
					//// INSTRUCTIONS: 
//// Copy and paste the code snippet below into the child theme's functions.php file.
//// You can edit the functions.php file from your WordPress dashboard (Appearance > Theme Editor) or via FTP.

--------------------------- CODE SNIPPET IS BELOW THIS LINE --------------------------- 

add_action(
  "wp_enqueue_scripts",
  function () {
    wp_dequeue_style("mylisting-material-icons");
  },
  99
);