Metro Pro – change Leave a Reply

Community Forums Forums General Discussion Metro Pro – change Leave a Reply

This topic is: not resolved

This topic contains 2 replies, has 3 voices, and was last updated by  CWietscher 5 months, 1 week ago.

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

    cotaylo
    Participant
    Post count: 29

    Hi. I’ve read all of the post here that I think relate to this but I’m still having trouble.

    I just want to change the comment title from “Leave a Reply” to something else.

    I tried this:
    http://my.studiopress.com/snippets/comments/

    //* Modify comments title text in comments
    add_filter( 'genesis_title_comments', 'sp_genesis_title_comments' );
    function sp_genesis_title_comments() {
    $title = '<h3>Discussion</h3>';
    return $title;
    }

    but it still says, “leave a Reply”

    Can anyone help me figure out what I’m leaving out/doing wrong?

    http://www.bbqonthemenu.com

    thanks a ton!

    • This topic was modified 8 months, 1 week ago by  cotaylo.
    • This topic was modified 8 months, 1 week ago by  cotaylo.
    #90215

    nutsandbolts
    Moderator
    Post count: 3140

    I think that snippet may be for older XHTML child themes. Try this one:

    //* Customize the comment form
    add_filter( 'comment_form_defaults', 'nabm_custom_comment_form' );
    function nabm_custom_comment_form($fields) {
    	$fields['comment_notes_before'] = ''; //Removes Email Privacy Notice
            $fields['title_reply'] = __( 'Join the Discussion', 'nabm' ); //Changes The Form Headline
    	$fields['label_submit'] = __( 'Submit Comment', 'nabm' ); //Changes The Submit Button Text
    	$fields['comment_notes_after'] = ''; //Removes Form Allowed Tags Box
        return $fields;
    }

    You can take out any line you don’t need/want to change, or just leave them all. Hope that helps!


    Andrea Whitmer, Owner, Nuts and Bolts Media
    I provide dev and training services for web designers • Find me on Twitter and Google+

    #104661

    CWietscher
    Member
    Post count: 1

    Hi,

    thanks for the snippet – it works well.

    Now my comment form, the headline, has a <h3>-tag. How can I change it into a <h4-tag>?

    Thanks,
    Christine

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

You must be logged in to reply to this topic.