Site logo

[Support request] remove website input box from comment section and modify header

Home Forums Support [Support request] remove website input box from comment section and modify header

Home Forums Support remove website input box from comment section and modify header

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2419553
    Linux TLDR

    I just want to remove website input box from the comment section not hiding it and modify the text for “Leave a comment” with something else as shown in the following picture.

    #2419576
    David
    Staff
    Customer Support

    Hi there,

    try adding this PHP Snippet to your site:

    
    add_action( 'after_setup_theme', 'tu_add_comment_url_filter' );
    function tu_add_comment_url_filter() {
        add_filter( 'comment_form_default_fields', 'tu_disable_comment_url', 20 );
    }
    
    function tu_disable_comment_url($fields) {
        unset($fields['url']);
        return $fields;
    }
    #2419581
    Linux TLDR

    in which page do I’ve to add it? and how do i modify the comment header?

    #2419596
    David
    Staff
    Customer Support

    That code is PHP.
    This doc explains how to add the PHP:

    https://docs.generatepress.com/article/adding-php/

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.