Title: Upgrading theme files for nested comments
Last modified: August 19, 2016

---

# Upgrading theme files for nested comments

 *  [Lusmo](https://wordpress.org/support/users/vincentchow/)
 * (@vincentchow)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/upgrading-theme-files-for-nested-comments/)
 * I tried doing it myself by following guides, while it works, it is totally naked,
   not taking my theme’s styling.
 * My comments.php
 * _[Code moderated as per the [Forum Rules](http://wordpress.org/support/topic/68664).
   Please use the [pastebin](http://wordpress.pastebin.ca/)]_

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Thread Starter [Lusmo](https://wordpress.org/support/users/vincentchow/)
 * (@vincentchow)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/upgrading-theme-files-for-nested-comments/#post-1450257)
 * Sorry for that, here’s the comments.php on pastebin:
 * [http://wordpress.pastebin.ca/1855562](http://wordpress.pastebin.ca/1855562)
 *  Thread Starter [Lusmo](https://wordpress.org/support/users/vincentchow/)
 * (@vincentchow)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/upgrading-theme-files-for-nested-comments/#post-1450303)
 * Anyone please?
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/upgrading-theme-files-for-nested-comments/#post-1450305)
 * what have you changed so far?
 * i assume you started with the commments.php of your theme (which obviously had
   its own css ids and classes for styling)
 * and then you made this new comments.php (with a different set of css ids and 
   classes (?), which you posted here)
 * styling comes from css which works with ids and classes – to get the styling 
   as before, you need to apply the same classes and ids that your ‘old’ comments.
   php used for the comments.
 * could you also paste the original comments.php of your theme?
 * and a link to your site?
 *  Thread Starter [Lusmo](https://wordpress.org/support/users/vincentchow/)
 * (@vincentchow)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/upgrading-theme-files-for-nested-comments/#post-1450318)
 * That code I linked above **is the original** comments.php. I tried modifying 
   it to make it works with nested comments, but it don’t play well with my theme.
 * Here’s my blog’s link: [http://www.sheeptech.com](http://www.sheeptech.com)
 * Thank you 🙂
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/upgrading-theme-files-for-nested-comments/#post-1450320)
 * couldn’t look at your site in IE7 – error aborted –
 * maybe one of the [validation ](http://validator.w3.org/check?uri=http%3A%2F%2Fwww.sheeptech.com%2F&charset=%28detect+automatically%29&doctype=Inline&group=0)
   errors caused this.
 * general the comments look ok to me in firefox, however i don’t know what your
   ideas are how it should look like; but in the end, this is pure css tweaking 
   and has not much to do with wordpress.
 *  [Rev. Voodoo](https://wordpress.org/support/users/rvoodoo/)
 * (@rvoodoo)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/upgrading-theme-files-for-nested-comments/#post-1450329)
 * I loved this tutorial for laying out great threaded comments
    [http://www.problogdesign.com/wordpress/advanced-wordpress-comment-styles-and-tricks/](http://www.problogdesign.com/wordpress/advanced-wordpress-comment-styles-and-tricks/)
 *  Thread Starter [Lusmo](https://wordpress.org/support/users/vincentchow/)
 * (@vincentchow)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/upgrading-theme-files-for-nested-comments/#post-1450333)
 * [@alchymyth](https://wordpress.org/support/users/alchymyth/) I don’t have IE7.
   Maybe you can try using Firefox? The comment section looks fine now because I
   am using the default comments.php code. This theme is old, and when it’s released,
   WordPress doesn’t support nested comments yet. Now that WordPress supports it,
   my theme is not compatible with that. I need to edit my comments.php in order
   for it to work with the nested comments.
 * This is what I’m trying to do (without success): [http://www.niharsworld.com/2008/12/16/how-to-implement-threaded-comments-in-wordpress-themes](http://www.niharsworld.com/2008/12/16/how-to-implement-threaded-comments-in-wordpress-themes)
 * [@rvoodoo](https://wordpress.org/support/users/rvoodoo/): I saw that great blog
   post before. Too bad, it’s only telling me how to enable nested comment, which
   will have no effect unless I update my comments.php accordingly.
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/upgrading-theme-files-for-nested-comments/#post-1450334)
 * > [@alchymyth](https://wordpress.org/support/users/alchymyth/) I don’t have IE7.
 * but many of your potential viewers have IE7 and some even have IE6;
    this was
   just something unrelated to your question, but equally important to fix.
 * you could paste the code of two things into a [pastebin ](http://wordpress.pastebin.com/)
   and post the links to it here:
    a – the code of your existing comments.php; b–
   the code of what you achieved so far following the ‘niharsworld’ tutorial (your
   new comments.php).
 * it is quite likely that this tutorial uses other css ids and classes as your 
   theme; but this can be changed and probably adapted to your theme.
 *  [Rev. Voodoo](https://wordpress.org/support/users/rvoodoo/)
 * (@rvoodoo)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/upgrading-theme-files-for-nested-comments/#post-1450335)
 * > [@rvoodoo](https://wordpress.org/support/users/rvoodoo/): I saw that great 
   > blog post before. Too bad, it’s only telling me how to enable nested comment,
   > which will have no effect unless I update my comments.php accordingly.
 * huh?
 * the tutorial I listed gives you a block of code for functions.php.
 * It then goes on to give you the full code for a new comments.php
 * Then it gives various options you can implement if you would like
 * And finally it gives you a full block of code to add to style.css which you can
   paste in place, and then edit in minutes.
 * It’s a full restyle of your entire comments section. I admit, it’s rather in 
   depth…..but the comments come out looking pretty stellar (witha few css tweaks
   with the classes given in the tutorial) It was just an option for you, in case
   you didn’t want to stick with the default comments.php
 * I originally tried to style my out of date theme by using the comments.php from
   the default theme….. redoing my css accordingly. Finally I went with the tutorial
   I posted. But if you are updating an out of date theme, you are either going 
   to have to redo your css, or your comments.php file most likely…..

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Upgrading theme files for nested comments’ is closed to new replies.

## Tags

 * [Comments](https://wordpress.org/support/topic-tag/comments/)

 * 9 replies
 * 3 participants
 * Last reply from: [Rev. Voodoo](https://wordpress.org/support/users/rvoodoo/)
 * Last activity: [16 years, 2 months ago](https://wordpress.org/support/topic/upgrading-theme-files-for-nested-comments/#post-1450335)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
