WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Remove You may use these HTML tags and attributes

[Resolved] Remove You may use these HTML tags and attributes

Viewing 15 replies - 1 through 15 (of 27 total)
  • depends on your theme….

    does your comments.php have the comments form coded into it? If so, it should be in there….

    or does it use <?php comment_form(); ?>?

    humbleopinion
    Member

    @humbleopinion

    The theme says: <?php comment_form(); ?>
    I assume that is wordpress.

    yup….here’s more info about how comment_form works:
    http://devpress.com/blog/using-the-wordpress-comment-form/
    my first guess is to do this:

    <?php comment_form(
    	array(
    		'comment_notes_after' => ' ',
    	)
    ); ?>

    to get rid of that (in place of the line you have now)…. but I’m not totally sure so I’ll look into it some more, but you can try that….

    humbleopinion
    Member

    @humbleopinion

    Thanks Rev….I did find this in the comment-template:

    ‘You may use these <abbr title=”HyperText Markup Language”>HTML</abbr> tags and attributes: %s’ ), ‘ ' . allowed_tags() . '‘ ) . ‘</p>’,

    looks like if the above doesn’t work…

    function mytheme_init() {
    	add_filter('comment_form_defaults','mytheme_comments_form_defaults');
    }
    add_action('after_setup_theme','mytheme_init');
    
    function mytheme_comments_form_defaults($default) {
    	unset($default['comment_notes_after']);
    	return $default;
    }

    added to functions.php will

    I did find this in the comment-template:

    in the comment-template in your theme? Or in Wp core?

    If in your theme, you can delete/comment out….. if in WP core, don’t edit that. You’ll lose your changes on an upgrade (also….if you are using twentyten theme we would need to make a child theme…as any changes to twentyten theme get lost on upgrade)

    humbleopinion
    Member

    @humbleopinion

    Rev, the comment-template in the wp files. I am using the swift theme. Love it, but there is too much to configure! I believe it use to have its own comment files, but not anymore.
    Thanks for the info!

    humbleopinion
    Member

    @humbleopinion

    Where would I add this to the function.php?

    function mytheme_init() {
    add_filter(‘comment_form_defaults’,’mytheme_comments_form_defaults’);
    }
    add_action(‘after_setup_theme’,’mytheme_init’);

    function mytheme_comments_form_defaults($default) {
    unset($default[‘comment_notes_after’]);
    return $default;
    }

    Anywhere. As long as its inside of the opening and closing tags that are already most likely in your functions.php, and you don’t just plop it in the middle of another function….

    humbleopinion
    Member

    @humbleopinion

    lol Thanks, no plopping in the middle of another function. This is getting to be very complicated! 🙂

    humbleopinion
    Member

    @humbleopinion

    Well, it didn’t work. Tried it twice. I will have to check out the swift theme site and see if there is an answer over there!

    humbleopinion
    Member

    @humbleopinion

    FINALLY figured it out! in the comment php, I had to replace this:
    <?php comment_form(); ?>
    with this: <?php comment_form(array('comment_notes_after' => '')); ?>

    This works for the swift theme!

    ^
    And work with me in evolve theme also 🙂

    Thanks !

    @humbleopinion

    lol…. See my 1st suggestion in post 4, which would be the exact same code you came up with!

    @humbleopinion

    Worked like a charm!

Viewing 15 replies - 1 through 15 (of 27 total)
  • The topic ‘[Resolved] Remove You may use these HTML tags and attributes’ is closed to new replies.