-
-
Save billerickson/e8c4624d25f6004d5db9e0c387cbb429 to your computer and use it in GitHub Desktop.
This file contains 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
<?php | |
/** | |
* Enqueue WPForms styles in homepage <head> | |
* @author Bill Erickson | |
* @see http://www.billerickson.net/code/enqueue-wpforms-style-head/ | |
*/ | |
function ea_home_wpforms_styles() { | |
if( is_home() && function_exists( 'wpforms' ) ) { | |
wpforms()->frontend->assets_css(); | |
} | |
} | |
add_action( 'wp_enqueue_scripts', 'ea_home_wpforms_styles' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment