Last active
December 4, 2016 09:49
-
-
Save generatepress/9282385984459c7ac6f2 to your computer and use it in GitHub Desktop.
Remove the core mobile.css file and add your own to your child theme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'wp_enqueue_scripts', 'generate_replace_mobile', 100 ); | |
function generate_replace_mobile() { | |
wp_dequeue_style( 'generate-mobile-style' ); | |
wp_enqueue_style( 'custom-mobile-style', get_stylesheet_directory_uri() . '/css/mobile.css', false, GENERATE_VERSION, 'all' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment