Okay
  Public Ticket #302603
comment-reply.js loading on pages
Closed

Comments

  • Nathan started the conversation

    Hi there,

    Since Salient has comments disabled for pages -- which I can see in functions.php -- I still appear to have comment-reply.js loading on my home page. I've excluded it from the Autoptimize plugin for testing and the original js still loads. Any idea what might be causing this? I've checked my child theme php and functions and there's nothing interfering.

    Cheers,

    Nathan

  • Nathan replied

    just a correction, it's comment-reply.min.js that is loading regardless of whether Salient has enabled comments.

  •  1,071
    ThemeNectar replied

    Hey - thanks for noting this. To remove it for now you can delete this line from the functions.php file:

    wp_enqueue_script('comment-reply');
  • Nathan replied

    Thanks!

    Will this disable comments for blog posts as well?

    Have you found this to be a problem with Salient or is it specific to my website?

  •  8,840
    Tahir replied

    Hey!

    Commenting the line would make it not load for the whole site. 

    Thanks 


    ThemeNectar Support Team 

  • Nathan replied

    So just to clarify: there is no way to stop comment-reply.min.js from loading specifically on pages without comments?

  •  8,840
    Tahir replied

    Not that i am aware of. 

    All the Best,

    -T


    ThemeNectar Support Team