Redundant js at the end of my HTML
-
Although i have no widget areas defined in my theme, and am implicitely not using the Meta widget, the result of this piece of code appears at the end of my HTML:
public function hide_meta_widget_link(){ if ( is_active_widget( false, false, 'meta', true ) && wp_script_is( 'jquery', 'enqueued' ) ) { echo '<script> jQuery(function($){ $(".widget_meta a[href=\'' . esc_url( get_bloginfo( 'comments_rss2_url' ) ) . '\']").parent().remove(); }); </script>'; } }
Why is this and how to resolve?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Redundant js at the end of my HTML’ is closed to new replies.