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]
Thankyou! this was exactly what i had to use this morning. Worked like a charm.
trisha
Awesome! Thanks!
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
Hello Affan,
You can place this in your functions.php file below the require_once( TEMPLATEPATH . ‘/lib/init.php’ ); statement.
Thanks,
Travis
Thanks!!!
Tried that exactly in the Serenity theme and the site disappeared.! REplaced the code and site still won’t show up!
Help!
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.
Thank you very much! 🙂
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!
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.
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
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 ??
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;
}