Support » Plugin: PPOM for WooCommerce » Enqueue stylesheet in header

  • Resolved Gal Baras

    (@galbaras)


    Looks like PPOM adds its stylesheet to the page in the footer, which makes overriding styles more difficult. On a site with page optimization, where stylesheets are combined, this has no effect on speed, but it does make styling more challenging.

    Is there a way to get the stylesheet enqueued in the header?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author N-Media

    (@nmedia)

    Hi @galbaras,

    we adding wp_enqueue_style function inside a shortcode, that’s why it is being added. We will consider this in the new version to load styles in the header in the future.

    Thread Starter Gal Baras

    (@galbaras)

    Quick reminder. When is the next version planned?

    Why are you enqueuing the stylesheet in a shortcode?

    Plugin Author N-Media

    (@nmedia)

    Hi @galbaras,

    The new version is being tested before launch and we now enqueued the CSS into the head. And it was not actually the shortcode, but the action: woocommerce_before_add_to_cart_button. Now we use WordPress wp_enqueue_scripts action to manage locations of all scripts.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.