Modify Comments Title and include count

Community Forums Forums Design Tips and Tricks Modify Comments Title and include count

This topic is: not resolved

This topic contains 2 replies, has 2 voices, and was last updated by  nubloggie 1 year, 4 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #51685

    nubloggie
    Participant
    Post count: 32

    I’m trying to modify the title of the Comments section from “Comments” to:

    {<h3>#</h3> comments….read them below or add one }

    ie, the “number of comments” as <h3> and words “comments….read them below or add one” as regular size text, with the “add one” as a hyperlink down to the Comment form.

    if anyone could help with this modification, i would be grateful!

    Many thanks.

    • This topic was modified 1 year, 4 months ago by  nubloggie.
    • This topic was modified 1 year, 4 months ago by  nubloggie.
    #51715

    braddalton
    Participant
    Post count: 10662

    Here’s the filters for that. Simply modify the code.

    Source http://my.studiopress.com/snippets/comments/

    Adding a comment count requires a significant amount of custom PHP coding


    #51822

    nubloggie
    Participant
    Post count: 32

    thanks. I actually found some code to make it work:

    /** Modify Comments Title */
     add_filter( 'genesis_title_comments', 'crunchify_title_comments');
    function crunchify_title_comments() {
        return __(comments_number( '{ Be the first to comment Share your thoughts below }', '{ 1 comment....read it below or <a href="#respond" rel="nofollow">add one</a> }', '{ % comments....read it below or <a href="#respond" rel="nofollow">add one</a>} ' ), 'genesis' );
    }
    

    Any idea how to make just the comment number <h3> and leave the rest of the text normal?

    thanks for your help!

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

You must be logged in to reply to this topic.