Skip to content

Instantly share code, notes, and snippets.

View thesaurabhk's full-sized avatar

Saurabh K thesaurabhk

View GitHub Profile
<?php
//* You don't need to add the opening php tag shown above.
//* Only copy and paste the below given code in functions.php file.
//* TN Dequeue Styles - Remove Google Fonts form Genesis Sample WordPress Theme
add_action( 'wp_print_styles', 'tn_dequeue_google_fonts_style' );
function tn_dequeue_google_fonts_style() {
wp_dequeue_style( 'genesis-sample-fonts' );
wp_deregister_style( 'genesis-sample-fonts' );
<?php
//* You don't need to add the opening php tag shown above.
//* Only copy and paste the below given code in functions.php file.
//* TN Dequeue Styles - Remove Dashicons from Genesis Theme
add_action( 'wp_print_styles', 'tn_dequeue_dashicons_style' );
function tn_dequeue_dashicons_style() {
wp_dequeue_style( 'dashicons' );
<?php
//* You don't need to add the opening php tag shown above.
//* Only copy and paste the below given code in functions.php file.
//* TN Dequeue Styles - Remove Font Awesome from WordPress theme
add_action( 'wp_print_styles', 'tn_dequeue_font_awesome_style' );
function tn_dequeue_font_awesome_style() {
wp_dequeue_style( 'fontawesome' );
wp_deregister_style( 'fontawesome' );