Viewing 4 replies - 1 through 4 (of 4 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    You’ll have to show us the contact form, can you link us your website?

    If not, try emulating the relevant Webpage through a sandbox tool like CSSDesk.com:

    1. View your webpage;
    2. Right click on the page somewhere and press “View source
    3. A new window will appear with all the code of your page. Copy all of that code
    4. Go to CSSDesk.com and paste it into the “HTML” section
    5. Press the “Share” button in CSSDesk
    6. A new URL will appear to the left of the “Share” button, copy that URL and paste it here in this thread

    We can then hopefully see your webpage without it going live.

    Thread Starter icookcode

    (@wordpresscrt2k)

    Hey Andrew – Thanks for your reply.

    I will do the above and will share the link here.

    Also if you can help I also wanted to know how to insert custom classes to form fields in comment form?

    So for eg I want to add an additional class added to text area field along with the default – .comment-form-comment

    Cheers!

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    You can use the ‘class_form’ argument to pass in your own class, which should give you enough flexibility to style everything inside that form.
    https://codex.www.ads-software.com/Function_Reference/comment_form#Parameters

    I.e.:

    
    $commentFormArgs = array('class_form' => 'customClass');
    <?php comment_form( $commentFormArgs ); ?>
    
    Thread Starter icookcode

    (@wordpresscrt2k)

    You da man. Thanks ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to customize comment form?’ is closed to new replies.