Comment Box … Add note

Community Forums Forums General Discussion Comment Box … Add note

This topic is: not resolved

This topic contains 5 replies, has 3 voices, and was last updated by  Tony @ AlphaBlossom 1 year, 9 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #18456

    lspadilla
    Participant
    Post count: 2

    Site:  simplyfreshvintage.com
    Theme:  Adorable

    I’d like to add a permanent “note” in the comments area under the “Please Join The Conversation” header.

    I tried using the code from this post:  http://www.studiopress.com/forums/topic/comment-policy-box/, changing it as follows below.  When I tried to save the change, it opened a server error message page.

    I’m very new to css and I’m waddling my way around.  Any help would be appreciated!

    Thank you :)
    Lani

     

    /** Add a comment policy box */
    add_filter(‘genesis_comment_form_args’, ‘custom_comment_form_args’);
    function custom_comment_form_args($args) {
    $args['comment_notes_before'] = ‘<p class=”comment-policy”>’ . __( ‘<small>I love to read your comments and will respond as soon as I can.  If you need a quicker response, please feel free to <a href=”mailto:lani@simplyfreshvintage.com?subject=Blog Comment”>email me.</a></small>’ ) . ( $req ? $required_text : ” ) . ‘</p>’;
    return $args;
    }

    #18463

    AC
    Blocked
    Post count: 7712

    You have to make sure when you copy and paste that all of the quotes (“) and the apostrophes (‘) and the correct ones. Use Notepad or Notepad++ and just go through there and make sure they are correct.

    #18474

    lspadilla
    Participant
    Post count: 2

    I went back and used the code snippet from SP, which produced the result found here:

    http://www.simplyfreshvintage.com/2013/02/06/test-post-1/

    1) How do I move the comment-policy note to below the “Join the Conversation” title instead of above it.

    2) If I want to link the email addy, do I change that line of code to read as follows:

    <p class=”comment-policy”><small>I love to read your comments and will reply shortly.  If you need a quicker response, please <a href=”mailto:lani@simplyfreshvintage.com?subject=Blog Comment”>email me.</a></small></p>

    Thank you so much!  I’m very appreciative :)

    Lani

     

     

     

     

    #18481

    AC
    Blocked
    Post count: 7712

    I don’t have Adorable so I cannot look at the files. For the “Join the Conversation” – open up your Functions.php file and see if you see anything titled that – if so, change it there. If you don’t – maybe add this to the bottom of the file changing “Leave a Comment” to whatever you want. See if that works.

    [php]/** Modify the speak your mind text */
    add_filter( ‘genesis_comment_form_args’, ‘custom_comment_form_args’ );
    function custom_comment_form_args($args) {
    $args['title_reply'] = ‘Leave a Comment’;
    return $args;
    }[/php]

    As for the email address, yes – that’s correct.

    #18686

    lspadilla
    Participant
    Post count: 2

     

    That snippet allows me to change the text of the title, but I’ve already done that.

    I’m trying to move the “comment policy box” snippet to show below the “Join the Conversation” , not above it.  Right now, it shows above it, as shown here: http://www.simplyfreshvintage.com/2013/02/06/test-post-1/

     

    CHILD THEME:  ADORABLE

    Thank you!

     

     

    #18708

    Tony @ AlphaBlossom
    Participant
    Post count: 544

    You can try something like this in your child-theme functions.php file:


    /** Add text below comment title */
    add_action( 'comment_form_top', 'custom_comment_form_after_title();
    function custom_comment_form_after_title() {
    echo "your text here";
    }

    I haven’t tested it throughly, so please test it but it should do what you need.


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

You must be logged in to reply to this topic.