• Resolved msheaver

    (@msheaver)


    I LOVE WP, and the developers are doing a wonderful job! Keep up the good work!

    Can you please, PLEASE put a global setting into the dashboard somewhere to give us the ability to turn off the “You may use these HTML tags and attributes” message associated with the user comments field? Whenever I switch themes, I have to either create a child them with the CSS code to disable this, or find somewhere within the current theme to insert this code. That way, we could set it on or off in the dashboard, and it would carry over into whatever theme we activate.

    Thank you very much!
    Michael
    [sig moderated as per the Forum Rules]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Not likely to happen, BUT you can make a plugin to do that! Check it out.

    Make a new folder on the same level as plugins and themes, call it mu-plugins

    Make a file called hide-html-tag-comments.php with the following content:

    <?php
    
    function link_to_stylesheet() {
            ?>
    <style type="text/css">
    #respond .form-allowed-tags {display:none;}
    </style>
    <?php
    }
    add_action('wp_head', 'link_to_stylesheet');
    
    ?>

    Put that file in mu-plugins

    Basically it’ll act like a function file for ANY theme you use ??

    Thread Starter msheaver

    (@msheaver)

    That did the trick, perfectly! Thanks for the wonderful tip!

    By the way, I ordered the book “Professional WordPress Plugin Development” by Brad Williams, Ozh Richard, & Justin Tadlock and look forward to diving into the world of plugin development. From what I saw in the Amazon reviews, it promises to be a wonderful resource.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disabling HTML tags on comments GLOBAL SETTING’ is closed to new replies.