• Hi,

    I would like to move the

    sassy-social-share-public.css

    to the footer rather than the header as it’s a render blocking resource.

    Can you help me with that?

    Thanks

    Dan

Viewing 1 replies (of 1 total)
  • Plugin Author Heateor Support

    (@heateor)

    Hi Dan,

    Sure. You can add following code in the functions.php file of your active theme for the same.

    /**
     * Initialization 
     */ 
    function heateor_sss_custom_init() {
      add_action( 'wp_enqueue_scripts', 'heateor_custom_frontend_css' );
    }
    add_action( 'init', 'heateor_sss_custom_init' );
    
    /**
     * Dequeue the public.css file of Sassy Social Share 
     */
    function heateor_custom_frontend_css() {
        wp_dequeue_style( 'heateor_sss_frontend_css' );
    }
    
    /**
     * Load public.css file in the footer 
     */
    function heateor_sss_custom_css_enqueue() {
        wp_enqueue_style( 'heateor_sss_frontend_css', plugins_url() . 'sassy-social-share/public/css/sassy-social-share-public.css', false );
    }
    add_action( 'wp_footer', 'heateor_sss_custom_css_enqueue' );
Viewing 1 replies (of 1 total)
  • The topic ‘Move sassy stylesheet to the footer’ is closed to new replies.