I am using <?php comments_template(); ?>
to show my comment form and I'm trying to remove the url field so I added this to my functions
add_filter('comment_form_default_fields', 'clear_url_box');
function clear_url_box($fields){
if(isset($fields['url']))
unset($fields['url']);
return $fields;
}
this is my single.php
<?php get_header(); ?>
<div id="content">
<div id="singleimg">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div id="post-<?php the_ID(); ?>">
<h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
<?php the_content('Read more on "'.the_title('', '', false).'" »'); ?>
<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
<div id="tags"><?php the_tags( '<p>Tags: ', ', ', '</p>'); ?></div>
</div>
<?php endwhile; else: ?>
<p>Sorry, no posts matched your criteria.</p>
<?php endif; ?>
</div>
<?php comments_template(); ?>
</div>
<?php get_footer(); ?>
but it's not working. Anyone know how to fix this? my site is http://toarumajutsunoindex.me/test/
comments.php
template?