Site logo

Archived topic

Changing Comment Box Label

9 replies · Started by linuxwolf on December 31, 2020

Viewing posts 1–10 of 10

Hello Team Generatepress,

I'd hidden comment box url successfully but not able to change comment box table.

I want to remove the word "website" ref #check the url comment box lable text.

Will I get reply?

Tom replied to add this code, but where to add it and how?

`add_filter( 'comment_form_default_fields', function( $fields ) {
$commenter = wp_get_current_commenter();

$consent = empty( $commenter['comment_author_email'] ) ? '' : ' checked="checked"';

$fields['cookies'] = '<p class="comment-form-cookies-consent"><input id="wp-comment-cookies-consent" name="wp-comment-cookies-consent" type="checkbox" value="yes"' . $consent . ' />' . '<label for="wp-comment-cookies-consent">Save my name and email in this browser for the next time I comment.</label></p>';

return $fields;
}, 20 );

Hi Leo,
That worked perfectly.

One question,
I am using "simple css" as per generatepress suggestion but the Code snippet plugin can also work for css, so do I need simple css anymore? or I can use a single plugin to serve all the purposes.

You can use Code Snippets as well.

Personally, I use Code Snippets for PHP and Additional CSS from WordPress for CSS :)

Thanks for reply leo.

Last question, I'm not sure it relates with generatepress or not, I am getting an error with embedded amazon image, there's html code part appears below image on my site. See image.

It's very unlikely a GP issue.

👍

This archived topic is closed to new replies.