Forums

Upgrading theme files for nested comments (10 posts)

  1. VincentChow
    Member
    Posted 2 years ago #

    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. Please use the pastebin]

  2. VincentChow
    Member
    Posted 2 years ago #

    Sorry for that, here's the comments.php on pastebin:

    http://wordpress.pastebin.ca/1855562

  3. VincentChow
    Member
    Posted 2 years ago #

    Anyone please?

  4. alchymyth
    The Sweeper
    Posted 2 years ago #

    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?

  5. VincentChow
    Member
    Posted 2 years ago #

    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

    Thank you :)

  6. alchymyth
    The Sweeper
    Posted 2 years ago #

    couldn't look at your site in IE7 - error aborted -

    maybe one of the validation 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.

  7. Rev. Voodoo
    Volunteer Moderator
    Posted 2 years ago #

    I loved this tutorial for laying out great threaded comments
    http://www.problogdesign.com/wordpress/advanced-wordpress-comment-styles-and-tricks/

  8. VincentChow
    Member
    Posted 2 years ago #

    @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

    @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.

  9. alchymyth
    The Sweeper
    Posted 2 years ago #

    @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 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.

  10. Rev. Voodoo
    Volunteer Moderator
    Posted 2 years ago #

    @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.....

Topic Closed

This topic has been closed to new replies.

About this Topic