Modifying Comment Form

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #23836

    Hi Livemesh,

    I’m using the Agile theme, and want to remove the “Website” field from the comment URL. I’ve found the function mo_comment_form_fields in the filed framework-extender.php, but when I change the arguments in here it doesn’t seem to make any difference. I can’t see that the function mo_comment_form_fields is actually being called anywhere. Do I need to enable that somehow?

    Thanks,
    Andrew.

    #23861
    Veena
    Moderator

    Pls use the below custom CSS in themeoptions –

    .comment-form-url {
        display: none;
    }
    
    #23933

    Hi Phoenix,

    Thanks for the quick response! I actually also wanted to make some structural changes to the form to fire a message box to users under certain scenarios, so was hoping to find out how the code is actually working under the hood. Are you able to comment on why modifying the framework extender fields aren’t having an impact?

    Thanks,
    Andrew.

    #23949
    Veena
    Moderator

    The comment form function which is defined in the framework-extender.php is an old function which is not using anymore..
    Comment form function call is in file comments.php .

    
    comment_form(array('title_reply' => __('Leave a Comment', 'mo_theme'), 'title_reply_to' => __('Leave a Comment to %s', 'mo_theme'), 'cancel_reply_link' => __('Cancel comment', 'mo_theme')));
    

    You need to modify the function arguments to modify the default comment form .
    More details are available here – https://codex.wordpress.org/Function_Reference/comment_form .

    You can check this article –
    https://www.inkthemes.com/how-to-easily-customize-wordpress-comment-form/

    #23965

    Thanks Phoenix! This answers my question, feel free to close this case.

    Regards,
    Andrew.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Modifying Comment Form’ is closed to new replies.