edit page comments php to set a default email and name
-
Hi Guys
I am using Avada 3.9.1 theme on wordpress. I am allowing comments on pages.WHen a visitor goes to the page they have to fill in their name and email.
I have edited the comments php in the theme folder, and wp-comments and set the field to a default name and email. However they only appear under the comments box on the page when i edit the theme comments php
I have change values of the name and email on this page from
. esc_attr( $commenter['comment_author'] ) . . esc_attr( $commenter['comment_author_email'] ) .
to myname and my email address respectivley
However when i go to post the page i still get the error
ERROR: please fill the required fields (name, email).
which is strange as you can see the name and email in these fields.Where do i go to set these field values by default so wordpress accepts the pre defined values in the box.
I have spent hours searching and tried various solutions but they do not work.
Many thanks
- The topic ‘edit page comments php to set a default email and name’ is closed to new replies.