• Noticed that sassy-social-share-public.css and sassy-social-share-svg.css files are loading int the entire site. I just want to load them on Posts.

    Found this thread but it only shows how to dequeue the css in the frontpage. How do I dequeue on all pages except in Posts?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter dainocenciowp

    (@dainocenciowp)

    Nevermind I think I figured it out, I inserted the following code. Please advise if you have a better suggestion:

    function dequeue_heateor_sss_css() {
    	if ( is_page() ) {
    		wp_dequeue_style( 'heateor_sss_frontend_css' );
    		wp_dequeue_style( 'heateor_sss_sharing_default_svg' );
    	}
    }
    add_action( 'wp_enqueue_scripts', 'dequeue_heateor_sss_css', 11 );
    Plugin Author Heateor Support

    (@heateor)

    It will do for now. We will take care of it in the upcoming updates of the plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘CSS files loading on all pages without social sharing buttons’ is closed to new replies.