For one of my sites, I wanted a more generic, gentler comment heading, so I needed to remove and/or change "Speak Your Mind." Here's how I did that.
[php]add_filter('genesis_comment_form_args', 'custom_comment_form_args');
function custom_comment_form_args($args) {
$args['title_reply'] = 'Leave a Comment'; // $args['title_reply'] = ''; for total removal
return $args;
}[/php]
trisha says
Thankyou! this was exactly what i had to use this morning. Worked like a charm.
trisha
Travis Smith says
Awesome! Thanks!
Affan says
hi, sorry i have only a little knowledge with genesis since i’m new to it.
so, where exactly should i place this code? which file?
thanks
wpsmith says
Hello Affan,
You can place this in your functions.php file below the require_once( TEMPLATEPATH . ‘/lib/init.php’ ); statement.
Thanks,
Travis
Mary says
Thanks!!!
steve says
Tried that exactly in the Serenity theme and the site disappeared.! REplaced the code and site still won’t show up!
Help!
wpsmith says
Usually that means that your file was corrupted some how. Copy the guts of functions.php in a new file save it as _functions.php. Delete functions.php and then rename _functions.php to functions.php. And re-upload. If you added other code, you may want to check that for typos and missing parenthesis, comma, or semi-colon.
Monika says
Thank you very much! 🙂
Garrett says
Hi there this is kinda of off topic but I was wondering if blogs use
WYSIWYG editors or if you have to manually code with HTML.
I’m starting a blog soon but have no coding know-how so I wanted to get advice from someone with experience. Any help would be enormously appreciated!
Travis Smith says
Hello WordPress uses a WYSIWYG editor called TinyMCE. There are also plugins that can expand this or replace it for another if you’d like.
Chris Egglesotn says
Hey Travis, wondering if you could help…
Is there a way to change the Speak Your Mind text based on the post type?
For example. I’m building a site for a cook, one post type is recipes, would like to have a different comment title then I would have for the blog post comments.
Thanks
Saliha Ali says
Hi !!! Thanks for sharing this wonderful post .. I was wondering if there is some way to remove the ‘website’ option from speak your mind area ??
Lobo says
This to be inserted in functions.php, and you have removed the “website field”
add_filter(‘comment_form_default_fields’, ‘url_filtered’);
function url_filtered($fields)
{
if(isset($fields[‘url’]))
unset($fields[‘url’]);
return $fields;
}