Where can I find this module in theme files/editor

Posted in: Newspaper
Post count: 71

I am trying to add a comment module on my custom cloud post template but when I add it the website field shows and the description says “save email, name and website..” (I wanna remove website) so I need to find the “td-comments-title block-title” in theme files and comment out/edit these parts.

So where can I find this “td-comments-title block-title”?

Post count: 20688

Hi,

WordPress or the theme don’t have options to remove the URL for the comments. You could remove it with a function in the theme functions file (or child theme)
https://www.screencast.com/t/ttstXm5qO

Here is the function code

function disable_comment_url($fields) {
unset($fields['url']);
return $fields;
}
add_filter('comment_form_default_fields','disable_comment_url');

Thanks

Post count: 71

Hi,

This worked, it removed the website url field.

How do I edit the label content now? I want to change from “Save my name, email and website in this browser for the next time I comment.” to “Save my name and email in this browser for the next time I comment.”

Post count: 20688

Hi,

That can be changed in the theme translation settings, in the theme panel
http://prntscr.com/lwf910

Thanks

Post count: 20

How I do it on the child theme?

Post count: 20688

Hi,


@Milan
The code can be entered in the functions file, either in the main theme or in the child theme.
There are also other ways to remove the field, for example with a simple CSS code in the theme panel custom CSS section

.comments .td-form-url {
display: none;
}

Thanks

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newspaper’ is closed to new topics and replies.