WordPress.org

Ready to get started?Download WordPress

Forums

Why is there code visible to guests? (9 posts)

  1. JimmyB
    Member
    Posted 9 years ago #

    Sorry about not using backticks. It won't happen again. I shouldn't have been in such a hurry. I don't suppose anyone would like to tell me where to find that code so that I could delete it. Or, is it better to leave it there?

  2. Beel
    Member
    Posted 9 years ago #

    You can edit your previous post and use the backticks. As for your question, you can leave it there... or not, your preference. It just tells your posters what code is available for them to use in their comments.

  3. JimmyB
    Member
    Posted 9 years ago #

    Thanks Beel. I've made the correction with the backticks.

  4. moshu
    Member
    Posted 9 years ago #

    Good job!
    OK, now you "deserve" the answer (just joking...)
    In your WP main directory find the file wp-comments.php and somewhere in the middle (don't know exactly because I moved mine below the text area) you will find something like this:
    <?php _e("Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed:"); ?> <?php echo allowed_tags(); ?>
    If you want you can delete it or just comment it with "//" - without quotation, of course.

  5. KJ
    Member
    Posted 9 years ago #

    I've still got the following code popping up for visitors:
    a href="" title="" rel=""> <b><br />
    <blockquote cite=""> <code> <em> <i> <strike> <strong>

    Can't find it to hide it.

  6. KJ
    Member
    Posted 9 years ago #

    Sorry, the code corrupted my post. I can't hide that code. That's what I'm trying to say. I just..can't...hide...the...code...

  7. Michael Adams (mdawaffe)
    Member
    Posted 9 years ago #

    That code just tells would-be commenters which HTML tags they can use. If you really don't want it, remove the part in your wp-comments.php file that says:

    <?php echo allowed_tags(); ?>

  8. NuclearMoose
    Member
    Posted 9 years ago #

    You can hide the code, but commenters will still be able to use the code if they know how to do basic HTML. Showing that code is only for information purposes only, and it's really only presentational HTML tags anyway.

  9. KJ
    Member
    Posted 9 years ago #

    I'm happy for them to code as much as their hearts desire, but the code looks ugly. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.