Skip to content

Instantly share code, notes, and snippets.

  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Remove the core mobile.css file and add your own to your child theme
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