Tagged: Comments
- AuthorPosts
- June 10, 2021 at 11:47 am #39068June 10, 2021 at 12:37 pm #39092Joseph WKeymaster
Hi Anita, we are happy to answer any questions you have about working with our WordPress theme Crio on your website!
The background color of the input fields on the comment form is pulled from the Color Palette selections made in the website Customizer, specifically the last color slot in the palette. The Crio theme framework refers to that specific palette item as the Neutral Color and is expected to be some form of black or white color option. You should be able to make the background of those input fields more readable by changing that final palette color to white.
The Allowed HTML tags and attributes help text is intended to give users a clear understanding of what HTML elements are permitted in comment submissions, but I completely understand the desire to hide that content on your website. We have a guide in our support center that demonstrates how to use Custom CSS to hide that information from your comment form.
The Leave a Reply text above the comment form is part of the default configuration and unfortunately there isn’t a way to change that text directly through the theme Customizer, however that content can be modified by using a WordPress PHP filter.
My preferred way of adding PHP to my websites is with the Code Snippets plugin since it allows my custom PHP to persist through theme updates without having to create my own child theme to manage my customizations. Code Snippets also allows you to control where the script is run on your website (Admin area, Front end, or both) and I recommend choosing to only run the code on the frontend to prevent any possible typos from triggering a fatal error on your website that is difficult to reverse. I tested the provided code on my own site and did not have issues so you should be safe, but it never hurts to be careful!
Create a new snippet with the following code to change the Leave a Reply text to show up as Comment instead.
function change_comment_form_title( $defaults ) { $defaults['title_reply'] = __( 'Comment' ); return $defaults; } add_filter( 'comment_form_defaults', 'change_comment_form_title' );
I hope that this helps you achieve the design you are looking for on your website Anita and please let us know if there is anything else that we can do to help!
- AuthorPosts
- The topic ‘Hide Allowed HTML tags and attributes for Comments’ is closed to new replies.