Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save shopifypartners/9fe2f7a1d1c78ab7c00ae5ffbe51d77f to your computer and use it in GitHub Desktop.
Save shopifypartners/9fe2f7a1d1c78ab7c00ae5ffbe51d77f to your computer and use it in GitHub Desktop.
function theme_scripts() {
wp_enqueue_script( 'buy-button', 'http://sdks.shopifycdn.com/buy-button/0.1.34/buybutton.min.js', array( ), '', true );
wp_enqueue_script( 'shopify-product', '/assets/js/custom.js', array('buy-button' ), '', true );
}
add_action( 'wp_enqueue_scripts', 'theme_scripts' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment