BuddyDev

Search

[Resolved] How to hide “Required fields are marked *” in WP blog comments

  • Participant
    Level: Enlightened
    Posts: 22
    Michael on #46797

    Hi guys,

    I recently updated my WP to 6.0.2, all’s good but suddenly I get the following new text on the blog comment area …

    Required fields are marked (asterisk)

    plus an asterisk next to COMMENTS above text input field.

    Can I remove these new items? They are pretty pointless as there is only the comment text input field, nothing else. Pointless information, just adds clutter.

    Thanks for any help.

  • Keymaster
    (BuddyDev Team)
    Posts: 24212
    Brajesh Singh on #46802

    Hi Michael,

    By default, all the fields required in comments are marked with asterisk. If it was not visibile, your theme might have the labels modified.

    Can you please tell me which theme are you using?

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 22
    Michael on #46804

    Thanks Brajesh,

    I updated WP from 5.5 (approx.) to 6.0.2, then those unwanted text/asterisks appeared.

    Theme is Twenty Sixteen.

  • Keymaster
    (BuddyDev Team)
    Posts: 24212
    Brajesh Singh on #46813

    Hi Michael,
    Thank you.

    You can hide all the asterisk from the comment form(in twentysixteen theme) by adding the following code to Dashboard->Appearance->Customize->Additional CSS.

    
    .comment-form .required{
    	display:none;
    }
    

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 22
    Michael on #46816

    Thanks Brajesh,

    I applied that CSS, it removed the blue asterisks but not the text “Required fields are marked”.

    Anything else I can do to remove that text?

  • Keymaster
    (BuddyDev Team)
    Posts: 24212
    Brajesh Singh on #46817

    Please add this too

    
    .comment-form .required-field-message{
    	display: none;
    }
    

    That should take care. Please let me know of that works for you or not?

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 22
    Michael on #46819

    That worked perfectly, all done.

    Thankyou, sir.

  • Keymaster
    (BuddyDev Team)
    Posts: 24212
    Brajesh Singh on #46820

    You are welcome.

The topic ‘ [Resolved] How to hide “Required fields are marked *” in WP blog comments’ is closed to new replies.

This topic is: resolved