Digg Digg CSS Loading In All Pages When Post Page Only Selected For Floating bar
-
I’ve observed that the Digg Digg CSS (diggdigg-style.css) is loading in all pages in the head section even when I selected only for the Post Page where I want the floating bar.
Can I selectively load the CSS only in the single page using the following code.
add_action( 'wp_print_styles', 'my_deregister_styles', 100 ); function my_deregister_styles() { if ( !is_single() ) { wp_deregister_style( 'diggdigg-style' ); } }
I’ve tried the above code, but that isn’t working can something similar or a tweak for the above code be suggested.
– Thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Digg Digg CSS Loading In All Pages When Post Page Only Selected For Floating bar’ is closed to new replies.