Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Sep 2013
    Posts
    29
    Thanks
    1
    Thanked 1 Time in 1 Post

    Removing Html tags below comment box

    I'm trying to remove this;

    You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

    from below my comment box, but haven't been able to figure out how. Here's the php code for the comment section

    PHP Code:
    <?php global $SMTheme?>
       <?php if ( post_password_required() ) { ?>
            <p><?php $SMTheme->_'password' ?></p>
        <?php return; } ?>
        <?php if ( $post->comment_status!='open' ) { ?>
            <p><?php $SMTheme->_'closedcomments' ?></p>
        <?php return; } ?>
        
        <?php if ( have_comments() ) { ?>
            <div id="comments">
                
                <h3 id="comments-title">
                
                <?php
                    
    if (get_comments_number()==1) {
                        
    printf$SMTheme->_'formoneresponse' ), '<em>' get_the_title() . '</em>');
                    } else {
                        
    printf$SMTheme->_'formmultiresponse' ), '<em>' get_the_title() . '</em>'get_comments_number());
                    }

                
    ?></h3>
                
                <ul class="commentlist">
                    <?php wp_list_comments('callback=custom_comments'); ?>
                </ul>
                
                <?php if ( get_comment_pages_count() > ) { ?>
                    <div class="navigation clearfix">
                        <div class="alignleft"><?php previous_comments_link$SMTheme->_'prevcomments' ) ); ?></div>
                        <div class="alignright"><?php next_comments_link$SMTheme->_'nextcomments' ) ); ?></div>
                    </div><!-- .navigation .clearfix -->
                <?php ?>
                
            </div><!-- #comments -->
        <?php ?>
        
        <?php 
            $args
    =array(
                
    'comment_field'        => '<p class="comment-form-comment"><label for="comment">' $SMTheme->_'comment' ) . '</label><textarea id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea></p>',
                
    'must_log_in'          => '<p class="must-log-in">' .  sprintf$SMTheme->_'mustbe' ).' <a href="%s">'.$SMTheme->_'loggedin' ).'</a> '.$SMTheme->_'topostcomment' ).'.' wp_login_urlapply_filters'the_permalink'get_permalink$post_id ) ) ) ) . '</p>',
                
    'logged_in_as'         => '<p class="logged-in-as">' sprintf__$SMTheme->_'loggedinas' ).' <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">'.$SMTheme->_'logout' ).'</a>' ), admin_url'profile.php' ), $user_identitywp_logout_urlapply_filters'the_permalink'get_permalink$post_id ) ) ) ) . '</p>',
                
    'comment_notes_before' => '<p class="comment-notes">' $SMTheme->_'comment_notes_before' ) . ( $req $required_text '' ) . '</p>',
                
    'comment_notes_after'  => '<p class="form-allowed-tags">'sprintf$SMTheme->_'comment_notes_after' ), ' <code>' allowed_tags() . '</code>' ) . '</p>',
                
    'id_form'              => 'commentform',
                
    'id_submit'            => 'submit',
                
    'title_reply'          => $SMTheme->_'leavereply' ),
                
    'title_reply_to'       => $SMTheme->_'leavereply' ),
                
    'cancel_reply_link'    => $SMTheme->_'cancelreply' ),
                
    'label_submit'         => $SMTheme->_'addcomment' )
            );
        
    comment_form($args); 
        
    ?>
    Thanks so much!

  • #2
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,618
    Thanks
    0
    Thanked 645 Times in 635 Posts
    It is inside the comment_form() function.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •