WordPress 2.7 Comments Not Threading

Standard

Wordpress Stacked LogoHaving problems getting WordPress 2.7 Comment Threading to work on your site? Unless you’re using one of the default themes provided with each version of WordPress, chances are your theme isn’t ready for comment threading when you upgrade to WordPress 2.7. To enable comment threading, you need to do the following:

  • Enable comment threads in your admin. Go to Settings > Discussion. Check the box next to Enable threaded (nested) comments __ levels deep. Save the changes and your blog can now support threaded comments.
  • Update your comments.php by replacing it with the one provided with the Default theme that comes with WordPress 2.7 (/wp-content/themes/default/comments.php) OR follow Otto’s instructions to add threading AND inline replies. (Obviously, before you go about changing any files in your theme, make a backup of your files before making any changes to your files. It’s possible that the comments.php file bundled with your theme could have been customized. Overwriting the file will cause you to lose any customizations.)
  • Once you’ve done the first 2 things, you’re pretty much ready to go. The only thing left is to update the styles to support nesting. I’ve done some of the heavy lifting for you… with my Wordpress 2.7 Comment Style Starters (#1, #2). Simply use the provided code in your theme’s stylesheet. If you’re more hands on, consider looking over this post on Stylizing WordPress 2.7 Nested/Threaded Comments to see the structure of the CSS.

If you’re still having problems, let me know. I’m happy to help others as time permits. If you’d prefer not to do any of this yourself, and would like me to take care of it for you, I am available for a small fee ($15 via PayPal) to make the upgrade for you. All it would require is temporary Admin access to your site. If you’re unable to use the Theme Editor to modify files through your backend, FTP access would be required. Send an email to chris@cdharrison.com if you’re interested.

12 thoughts on “WordPress 2.7 Comments Not Threading

  1. thanks to your advice i was able to replace the comments.php from default into the scruffy theme!
    Your saying I need to do something else with the CSS? It looks like its working as is now?

    • Some themes will work out of the box, as it appears the one you are using did. The style starters that I created were designed to serve as a way for folks to stylize nested comments in the event their theme didn’t play nice with the new nested comments feature.

      • DOH! didn’t use threading!

        Great thanks for checking mine out. Its definitely not as attractive as your nestings but its good to know its working.
        BTW while I got your attention…know of any reason why my archive and categories drop downs don’t work?

  2. Great thanks for checking mine out. Its definitely not as attractive as your nestings but its good to know its working.
    BTW while I got your attention…know of any reason why my archive and categories drop downs don’t work?

    • In your stylesheet, look for .widgetbottom. Change z-index:0 to z-index:-1. That should fix your problem. What’s happening is the bottom part of the widget container is appearing over the select menu within the widget. By setting the z-index to -1, it’ll get pushed behind the select. Hope this helps.

    • You may also look at creating a selector: .widget select { z-index:1; }. My other recommendation kills the background-image in the bottom-right of the widgets.

  3. I finally got around to putting the code in the way it looks below. It brought back that corner image but doesn’t allow clicking on the drop down.
    Did I do it wrong? No big deal either way.

    .widget .widgetbottom {
    position: relative;
    z-index: 0;
    height: 29px;
    width: 225px;
    background: url(img/catbotright.jpg) no-repeat bottom right;
    margin-top: -20px;
    }

    .widget select {
    z-index:1;
    }

Comments are closed.