Unable to enqueue css via wpmm_head hook
-
I saw some of the other topics here about adding custom css via the
wpmm_head
hook. but it seems rather odd to hardcode the css like that. So i’m trying to enqueue an external css instead. But it doesn’t seem to work.I’m not exactly a WP expert. So pardon my ignorance with hooks, etc. Any help would be appreciated.
function custom_comingsoon() { wp_register_style( 'comingsoon', get_stylesheet_directory_uri() . '/comingsoon.css', array(), wp_get_theme()->get('Version') ); wp_enqueue_style( 'comingsoon' ); } add_action('wpmm_head', 'custom_comingsoon');
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Unable to enqueue css via wpmm_head hook’ is closed to new replies.