• Jessica

    (@jessica-korteman)


    Hi,

    I have been trying to make changes to the text in my comment form over the past few months but so far have not had any luck.

    I have read lots of posts here and elsewhere on the topic and have made changes to the files mentioned in those posts, but so far it hasn’t made any difference. It seems the code affecting the form is being sourced from elsewhere.

    Can anyone shed any light on which file I should be editing to make these changes?

    My site is notesofnomads(dot)com

    Many thanks in advance,

    Jessica

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi,

    I think you will need to start with the theme’s comments.php (/wp-content/themes/<theme-name>/comments.php). I see that you also have plugins related to comments installed which could be adding text. If that is the text you want to update (for e.g: the commentluv checkbox), you will have to edit the corresponding plugin (wp-content/plugins/<plugin-name>/).

    Can you describe more on what changes you want to do?

    Regards,
    Ramesh (thecodeisclear)

    Thread Starter Jessica

    (@jessica-korteman)

    Hi Ramesh,

    Thank you for your quick reply. I have already tried the comments.php file but haven’t had any luck, unfortunately.

    I just want to make changes to the labels. For example, adding ‘Your email will not be published’ after the email field.

    I am not clear if the comment form is being sourced from my theme files or as part of the basic structure of WordPress. I have found references to the comment form in many files but none of the changes I’ve made to date have adjusted the form.

    Any assistance you could give would be greatly appreciated.

    Many thanks,

    Jessica

    the text ‘Your email address will not be published.’ is default for the comment form;
    review:
    http://codex.wordpress.org/Function_Reference/comment_form

    if this is not showing, it might have been changed in your theme, either in the ‘comment_form()’ code or via CSS.
    for details, please contact the developer of your theme for support.

    Thread Starter Jessica

    (@jessica-korteman)

    I think it must be theme related. I have gone through the reference you posted previously and changing code in the comments.php doesn’t change anything for me.

    The problem is that despite the fact the theme I use is still being sold, the developer no longer provides any support for it so I am on my own.

    If you have any advice about where I could look for the relevant code, I’d really appreciate it.

    Thread Starter Jessica

    (@jessica-korteman)

    Is there a way for me to override the theme coding and return to the default WordPress comments form?

    if you fully delete the comments.php file from your theme (make a backup copy first) then WordPress will use the one from /wp-includes/theme-compat/comments.php

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Making changes to comment form’ is closed to new replies.