The comment forms in Oxygen do not display the field labels out of the box.

Below screencast shows how we can show the labels or placeholders for the comment form input fields:

To show the labels

This is the needed CSS:

.oxy-comment-form label {
    display: block;
}

.comment-form-cookies-consent {
    display: flex;
}

#wp-comment-cookies-consent {
    width: auto;
    margin-right: 10px;
}

.oxy-comment-form .comment-form-cookies-consent label {
    line-height: 1.1;
    font-weight: normal;
}

To show placeholders

Add the code from Bill Erickson’s article without the opening PHP tag in a Code Snippet that is set to show on frontend only.

Need help implementing a tutorial in your site or want to hire me for custom work?

HIRE ME

Find the article helpful and wish to donate?

DONATE

Comments

For adding code blocks wrap the code in three backticks. Markdown should work.
Provide a URL of your site/webpage if something is not working.
  • In order to make this work for me I had to add the selector in oxygen “.oxy-comment-form label” (without the quotes of course) but I had to go into the advanced – Custom CSS and add it like this: .oxy-comment-form label { display:block !important; it seemed to work for you without the !important tag being added..

  • magnifiercross
    >
    linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram
    %d bloggers like this: