WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In a theme I am working on, the comments form (mostly sure they are both comments form) adds javascript to the header.

<script type='text/javascript' src='http://[URL]wp-includes/js/l10n.js?ver=20101110'></script>
<script type='text/javascript' src='http://[URL]/wp-includes/js/comment-reply.js?ver=20090102'></script>

When I disable javascript I can still add comments and the comment form still works. So I wish to remove these from my header.

I cannot find any documentation on how to do so, so How can I remove these?

share|improve this question
If you remove those, you'll break the comment reply links from moving the comment form around on the page to handle threaded comments properly. – Otto Dec 9 '11 at 21:45
up vote 1 down vote accepted

You could remove scripts in the following manner.

function custom_remove_scripts() {
add_action( 'wp_enqueue_scripts', 'custom_remove_scripts' );
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.