• Resolved sambayer

    (@sambayer)


    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)
  • Plugin Contributor Andras Guseo

    (@aguseo)

    Hi @sambayer,

    Thanks for reaching out and sharing your thoughts.
    Can you give me some more details on what you would like to achieve? The more details you can give me the better.

    I have created a gigpress.css file in the theme folder and it got properly loaded when the Setting ‘Advanced: Disable the default GigPress CSS’ was NOT ticked.

    When I ticked that box, so that it wouldn’t load the css, it didn’t.

    Cheers,
    Andras

Viewing 1 replies (of 1 total)
  • The topic ‘wp_enqueue_style in gigpress.php not working’ is closed to new replies.