Thanks for your responses, but maybe I'm just not being clear.
In the comments.php it states the following:
* The template for displaying Comments.
* The area of the page that contains both current comments
* and the comment form. The actual display of comments is
* handled by a callback to twentyten_comment which is
* located in the functions.php file.
* @package WordPress
* @subpackage Twenty_Ten
* @since Twenty Ten 1.0
I want to deal with the actual display, so I included the code [in previous comment] to handle the display of the comment number.
In the page.php it only has the following:
<?php comments_template( '', true ); ?>
which is after the post. This is fine, I don't want to change this.
In the single.php it calls the following:
<?php twentyten_posted_on(); ?>
</div><!-- .entry-meta -->
Which is fine, that's calling the code I have in the functions.php
The above code is also in my loop.php which means that it will show up on all posts anywhere - this is also fine.
My child theme includes the following files:
Now what I'm trying to do is fix the functions.php code to do the following, since the twentyten_posted_on (); is in the loop and will change it everywhere.
Now I'm figuring that this part of the code I'm going to have to change.
sprintf( '<span class="meta-comment-count"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>',
'#comments', // use #comments to jump to top of comments; use #respond to jump to comment form
'jump to comments', // link alt text
(get_comments_number() != 1) ? get_comments_number().' comments' : get_comments_number().' comment' // comments number
But I'm just not that good to figure it out.
I've done this before on a different theme and here is what the code looks like.
<?php $comment_count = get_comment_count($post->ID); ?>
<?php if ($comment_count['approved'] > 0) : ?> | <?php comments_popup_link('','<span style="font-size:1.5em;font-weight:bold;">1</span> comment','<span style="font-size:1.5em;font-weight:bold;">%</span> comments','',''); ?> , <a style="color:#0099cc;" href="<?php the_permalink(); ?>#commentform">what's your opinion?</a>
<?php else : ?> | <a style="color:#0099cc" href="<?php the_permalink(); ?>#commentform"> Care to comment?</a><?php endif; ?>
Thanks again for the responses.