Created
June 13, 2013 19:59
-
-
Save isGabe/5776841 to your computer and use it in GitHub Desktop.
WordPress: register Gravity Forms stylsheet, only enqueue on Contact page #snippet #WordPress
This file contains hidden or 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
// Gravity Forms style sheet | |
wp_register_style( 'gravity-forms', get_stylesheet_directory_uri() . '/library/css/gravity-forms.css', array(), '' ); | |
// only load on contact page | |
if(is_page('contact')){ | |
wp_enqueue_style('gravity-forms'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment