• I would like to collapse or make the reply/comments section smaller at the end of posts. Can the “comment” box be made into a smaller box? Is it possible to put the name and email fields on the same line? Any ways to make this section smaller, the better. Thanks.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi there,
    You can actually remove the URL field by adding this

    function wpbeginner_remove_comment_url($arg) {
        $arg['url'] = '';
        return $arg;
    }
    add_filter('comment_form_default_fields', 'wpbeginner_remove_comment_url');

    in your child themes function.php file.
    Also you can add this

    .comment-form-comment textarea{
     height:90px;   
    }
    .comment-form-author,
    .comment-form-email{
     width:50%;
        float:left;
       
    }
    .comment-form-email{
     padding-left:20px;   
    }
    .comment-form-author input,
    .comment-form-email input{
     width:100%!important;   
    }

    to tidy the form.
    To fully change eveything on your comment form check this article https://www.wpbeginner.com/wp-themes/how-to-style-wordpress-comment-form/
    Let me know if this worked for you.

    Thread Starter myfavoritehello

    (@myfavoritehello)

    Thank you. Hiding the URL field code worked.

    However, when i add the second set of code, I get this error:

    Your PHP code changes were rolled back due to an error on line 521 of file wp-content/themes/olsen-light/functions.php. Please fix and try saving again.
    syntax error, unexpected ‘.’, expecting end of file

    Line 521 is .comment-form-comment texture{

    Thank you!

    Hi there,
    My bad, I forgot to mention,
    please add the custom css under Customize->Additional CSS
    Then check your comment form.

    Let me know if you need additional help on this.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Make the Comments/Reply section smaller’ is closed to new replies.