Change title and add text to comment form

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #5021 Reply
    Frank Wiedenbeck
    Guest

    hi,

    i wannt to change the header title and sub title of the comment form. And i also want to add “*” to Name & EMail. How can i do that please help? I also want to change the background colour of it.

    Check up the link of the image below:
    http://www.directupload.net/file/d/3555/yaw5lazz_jpg.htm

    Thxs for help!

    #5024
    Ron
    Keymaster

    Replace the text values of the code below (ex. “Comment Form Title”) then add it on your Child Theme’s functions.php

    function ra_comment_form_defaults( $defaults ) {
         $defaults['title_reply'] = 'Comment Form Title';
         $defaults['comment_notes_before'] = 'Comment Form Text';
         return $defaults;
    }
    add_filter( 'comment_form_defaults', 'ra_comment_form_defaults' );

    To add those asterisks, go to the admin area Settings -> Discussions
    then check the Comment author must fill out name and e-mail option.

    To change the background color, add this on the theme’s Custom CSS option. Replace the color white (#FFF) with your chosen color.

    #respond.comment-respond {background-color: #FFF;}
    

    Read these posts for further info on customizing your theme:

    https://ronangelo.com/learning-css-a-quick-useful-introduction/

    https://ronangelo.com/use-firebug-to-modify-wordpress-theme-css/

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Change title and add text to comment form
Your information: