Skip to content

Instantly share code, notes, and snippets.

@bhavik-kiri
Last active June 21, 2017 11:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bhavik-kiri/9e4f02a7ae2fb720c8bc083696b84170 to your computer and use it in GitHub Desktop.
Save bhavik-kiri/9e4f02a7ae2fb720c8bc083696b84170 to your computer and use it in GitHub Desktop.
It will enqueue the CSS file in the footer of the store
<?php
function add_css(){
if ( is_checkout() ) {
wp_enqueue_style( 'checkout_style', plugins_url( '/assets/css/change-quantity-on-checkout.css', __FILE__ ), '', '', false );
}
}
add_action( 'wp_footer', 'add_css' ), 10 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment