Forums

Remove HTML tags and attributes (15 posts)

  1. cyberknight8610
    Member
    Posted 7 months ago #

    How do I remove this from the comments?-

    You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b>
    <blockquote cite=""> <cite>
    <del datetime=""> <em> <i> <q cite=""> <strike> <strong></p>
    <p>here is an article as any example-
    http://cyberduelist.com/yugioh-news/yu-gi-oh-5ds-vol-2-manga/</strong></em>

    `

  2. cyberknight8610
    Member
    Posted 7 months ago #

    something messed up here is the code-
    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>

  3. esmi
    Theme Diva & Forum Moderator
    Posted 7 months ago #

  4. cyberknight8610
    Member
    Posted 7 months ago #

    can you give me more info?

  5. cyberknight8610
    Member
    Posted 7 months ago #

    or can you help me figure out what comment plugin this website uses-
    http://www.yuginewz.com/2011/09/photon-shockwave-exclusive.html

  6. roscius
    Member
    Posted 7 months ago #

    Adding this to functions.php should do the trick:

    /**
     * Remove the text - 'You may use these <abbr title="HyperText Markup
     * Language">HTML</abbr> tags ...'
     * from below the comment entry box.
     */
    
    add_filter('comment_form_defaults', 'remove_comment_styling_prompt');
    
    function remove_comment_styling_prompt($defaults) {
    	$defaults['comment_notes_after'] = '';
    	return $defaults;
    }
  7. cyberknight8610
    Member
    Posted 7 months ago #

    where do I add that?

  8. roscius
    Member
    Posted 7 months ago #

    Or the easier path esmi suggested, search your theme files for comment_form() - at line 75 in comments.php in TwentyEleven and change it to

    comment_form(array('comment_notes_after'=>''));

  9. roscius
    Member
    Posted 7 months ago #

    Add the first block to functions.php

  10. cyberknight8610
    Member
    Posted 7 months ago #

    ok so I add this-

    /**
     * Remove the text - 'You may use these <abbr title="HyperText Markup
     * Language">HTML</abbr> tags ...'
     * from below the comment entry box.
     */
    
    add_filter('comment_form_defaults', 'remove_comment_styling_prompt');
    
    function remove_comment_styling_prompt($defaults) {
    	$defaults['comment_notes_after'] = '';
    	return $defaults;
    }

    anywhere yo the functions.php file? sorry I am kinda new.

  11. roscius
    Member
    Posted 7 months ago #

    No worries, yup, you can add it anywhere. Right at the bottom, might be a good plan so you don't break any other code by accident.

  12. cyberknight8610
    Member
    Posted 7 months ago #

    ok thanks also do you know what comment plugin this website uses?

    http://www.yuginewz.com/2011/09/photon-shockwave-exclusive.html

  13. robpachasa
    Member
    Posted 4 months ago #

    Verifying this works (found through google)

    @cyberknight8610 That's a Blogger site (not WordPress). It's blocked at my work so I can't tell you what the comment form looks like but 90% of comment forms are built into the theme. The only free plug-in I can suggest is Disqus even though I don't personally use it. So you can look at those to see if it's got what your looking for?

  14. BrokenGString
    Member
    Posted 3 months ago #

    Hi all ... another newbie here. I have the same issue with the Suffusion template. Any solutions you can offer??

  15. mlotorocks
    Member
    Posted 1 month ago #

    Another solution is just to hide the code. In your style sheet just put:

    #form-allowed-tags {
    	display:none;
    }

Reply

You must log in to post.

About this Topic