wp_enqueue_style in gigpress.php not working
-
I’m using gigpress 2.3.19, WordPress 4.8.3. In gigpress.php, gigpress_head() calls wp_enqueue_style(), which, for me, is being called (I’ve verified that PHP is entering the “if” clause that contains it), and the URL that it’s supposedly enqueueing is correct, but the CSS link never appears in the generated HTML. The WordPress action that gigpress_head is being hooked to is wp_head. Apparently, this isn’t the right way to enqueue things; you’re supposed to hook it to wp_enqueue_scripts. If I change the hook (and yes, I know that there’s other stuff in gigpress_head(), but I’m just testing things here), the CSS link appears as expected.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘wp_enqueue_style in gigpress.php not working’ is closed to new replies.