Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #39068
    Anita
    Guest

    Hi! I would like to know how to fix or change the following:

    1. The LEAVE A REPLY section: how can I change its name for COMMENT (for example) and how can I change the colors of the boxes (the boxes of comment, name, email, website, and all the boxes generally on my site)? I can’t see that option, and the colors bother the eye. And how can I change or remove these boxes?

    2. The most important question: how to remove the section of You may use these HTML tags and attributes: and the codes below <abbr title=””> <acronym title=””> <b>

    <cite> <i> <q cite=""> <s> <strike> along with its box?

    I would appreciate your answer!

    #39092
    Joseph W
    Keymaster

    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!

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Hide Allowed HTML tags and attributes for Comments’ is closed to new replies.