Skip to content

Instantly share code, notes, and snippets.

@anwerashif
Created March 19, 2018 20:20
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 anwerashif/b344157ddcc8adb9488489d33bdad532 to your computer and use it in GitHub Desktop.
Save anwerashif/b344157ddcc8adb9488489d33bdad532 to your computer and use it in GitHub Desktop.
How to Add Pinterest Button to Genesis Framework
<?php
// Do NOT include the PHP opening tag
// Enqueue Scripts
add_action( 'wp_enqueue_scripts', 'pinterest_button_script' );
function pinterest_button_script() {
wp_enqueue_script( 'pin-me-int', get_stylesheet_directory_uri() .'/js/pinme.js', array( 'jquery' ), CHILD_THEME_VERSION, true );
wp_enqueue_script( 'mystudio', get_stylesheet_directory_uri() .'/js/rainastudio.js', array( 'jquery' ), CHILD_THEME_VERSION, true );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment