Numbering Comments in Decor Child Theme

Community Forums Forums Design Tips and Tricks Numbering Comments in Decor Child Theme

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  wpspeak 3 months, 3 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #12072

    myersbr2
    Participant
    Post count: 5

    I know it is possible to  number comments within WordPress and generally I wouldn’t be afraid to jump into the comments.php and change things, but I’m learning with Genesis that is a no-no.  So…can anyone help me?

    In the Decor child theme, how do I number my comments? I wanted to use a tutorial similar to (http://bavotasan.com/2009/how-to-add-numbers-to-your-comments-in-wordpress/).

    #14934

    wpspeak
    Participant
    Post count: 40

    You can use Greg Threaded Comment Numbering plugin.

    Use this code to add support to the plugin when using Genesis

    /** Add Support for Comment Numbering */
    add_action ('genesis_before_comment', 'child_numbered_comments');
    function child_numbered_comments () {
    if (function_exists('gtcn_comment_numbering'))
    echo gtcn_comment_numbering($comment->comment_ID, $args);
    }

    This code was taken from Studiopress (tutorial section) few months ago and I just noticed they had remove it. Not sure why. But this code works and I’m using it on one of my themes I am currently develop.


Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.