Created
October 16, 2014 10:46
-
-
Save tomhemsley/32786e0fa7f01ad6db59 to your computer and use it in GitHub Desktop.
Add style.css to preview
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
function metaslider_add_style_to_preview() { | |
wp_enqueue_style( 'theme-css', get_template_directory_uri() . '/style.css', array(), '', true ); | |
} | |
add_action( 'admin_post_metaslider_preview', 'metaslider_add_style_to_preview', 9 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment