Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,
    CSS is enqueued only when the shortocde is present within the page content or widget areas. That’s why I can only enqueued it when all the page content is loaded.
    If you want to force CSS enqueueing, you can use the following function:

    function bweb_feedzy_force_style() {
    	wp_enqueue_style( 'feedzy_register_custom_style' );
    }
    add_action( 'wp_enqueue_scripts', 'bweb_feedzy_force_style' );
    remove_action( 'wp_footer', 'feedzy_print_custom_style' );

    I didn’t tried it, but it should work.
    Cheers,

    Thread Starter Frederic Legrand

    (@fredericlegrand)

    perfect
    thanks for fast response

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘css in footer’ is closed to new replies.