Toggle CommentCount.js & LF DEBUG output
-
I would like to be able to disable the CommentCount.js file and the output of the LF DEBUG code. I can comment it out in the code and it works fine, but feel it’s better handled through the actual plugin.
Also, the CommentCount.js doesn’t use the WordPress enqueue script functionality. This makes it difficult to control the code on my end without editing the plugin.
if ( !is_single() ) { echo '<script type="text/javascript" data-lf-domain="' . $network . '" id="ncomments_js" src="'.$this->lf_core->assets_url.'/wjs/v1.0/javascripts/CommentCount.js"></script>'; }
echo "\n"; ?> <!-- LF DEBUG site-id: <?php echo $site_id . "\n"; ?> article-id: <?php echo $article_id . "\n"; ?> post-type: <?php echo $post_type . "\n"; ?> comments-open: <?php echo comments_open() ? "true\n" : "false\n"; ?> is-single: <?php echo is_single() ? "true\n" : "false\n"; ?> display-posts: <?php echo $display_posts . "\n"; ?> display-pages: <?php echo $display_pages . "\n"; ?> --> <?php
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Toggle CommentCount.js & LF DEBUG output’ is closed to new replies.