Community Forums › Forums › General Discussion › Comment Box … Add note
Tagged: adorable, Comment Box
This topic contains 5 replies, has 3 voices, and was last updated by Tony @ AlphaBlossom 3 months, 2 weeks ago.
-
AuthorPosts
-
February 6, 2013 at 10:12 am #18456
Site: simplyfreshvintage.com
Theme: AdorableI’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;
}February 6, 2013 at 10:45 am #18463You 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.
Twitter Handles: @thecre8tivediva | Website: Cre8tiveDiva.com | LinkedIn Group: http://goo.gl/nNe1m
Why Not Take The Challenge! – Help us answer some of the unanswered postsFebruary 6, 2013 at 12:56 pm #18474I 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
February 6, 2013 at 1:34 pm #18481I 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.
/** 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; }As for the email address, yes – that’s correct.
Twitter Handles: @thecre8tivediva | Website: Cre8tiveDiva.com | LinkedIn Group: http://goo.gl/nNe1m
Why Not Take The Challenge! – Help us answer some of the unanswered postsFebruary 7, 2013 at 11:09 am #18686That 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!
February 7, 2013 at 12:35 pm #18708You 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.
Tony Eppright | http://www.AlphaBlossom.com
-
AuthorPosts
You must be logged in to reply to this topic.