Support » Plugin: Comments - wpDiscuz » JS and CSS

  • Resolved seyntjim



    I’m new to wordpress and I’m thanking I found your plugin! I was just wondering how to load Wpdicuz JS and CSS files only on post page. I want to disable those on homepage and other pages as well. Is there any hack/modification on how to do it? Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author gVectors Team


    wpDiscuz only loads CSS and JS if the (is_singular()) condition is true (posts, pages, custom post types), it works like you want. The only issue is the homepage, if it’s a page wpDiscuz will load those. We can’t close it for home page because some people use comment form on the home page as well.
    You can close it manually, just open /wpdiscuz/wc.php file and find this code:

    if (is_singular()) {

    Then replace it to:

    if (is_singular() && !is_front_page()) {

    Thank you! This is the code I’m looking for!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘JS and CSS’ is closed to new replies.