StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 08-18-2009, 01:08 PM
Rajee Rajee is offline
Registered User
Genesis Member
 
Join Date: Jul 2009
Posts: 366
Default Re: Numbering comments

1. First thing you will want to do is create a backup your comments.php file.
2. Locate the comments.php file.
3. Locate the code that starts the comment loop. It will look something like this:
<?php if ( $comments ) : ?>
4. Place this code immediately above the code in Step 3:
<?php $i = 0; ?>
5. Now locate the code that looks like this:
<?php foreach ($comments as $comment) : ?>
6. Placed this code immediately below the code in Step 5:
<?php $i++; ?>
7. Now use this code where you want to display your comment numbers:
<span class="count">
<?php echo $i; ?>
</span>
8. Click Save.
9. Now go to your stylesheet (style.css) and place this code anywhere on the stylesheet (probably best placed in the comments section):
.count {
float:right;
padding: 10px;
font-size:18px;
color:#000000;
}
I couldn't find this below code in comments.php.
Code:
<?php foreach ($comments as $comment) : ?>
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Numbering Comments ilikeitfrantic General Discussion 4 09-02-2009 10:36 AM
V 4.0: Numbering Individual Comments on a Post Kailani General Discussion 1 08-06-2009 11:46 PM


All times are GMT -5. The time now is 02:56 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.