Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #30434
    JT890
    Guest

    Hello! I am trying to remove the comments section in a blog that says “You may use these HTML tags and attributes: …”. I’ve looked at some previous answers but can’t seem to work it out. Would be great to get some help!

    #30435
    Jesse Owens
    Guest

    Hello!
    Thanks for the excellent question, I’m sorry to hear that previous answers didn’t get you the help you need.

    In order to disable comments on a Blog Post, navigate to the Posts -> All Posts menu, hover over the post you want to disable comments for, and click Quick Edit.

    Uncheck the options for Allow Comments and Allow Pings, and then click Update.
    Quick Edit post and uncheck allow comments and allow pings

    If you want to disable comments for all of your posts at once, navigate to Settings -> Discussion and uncheck the box for Allow people to post comments on new articles, scroll down to the bottom, and click Save Changes.


    I hope this helps!

    #30436
    JT890
    Guest

    Hi Jesse, many thanks for your reply! I’m not actually trying to disable the comments functionality itself. Rather, there is this rather irksome area below the blog comments section that says “You may use these HTML tags and attributes …” followed by “<a href=”” title=””> <abbr title=””> <acronym title=””> <b> <blockquote cite=””> <cite> <code> <del datetime=””> <em> <i> <q cite=””> <s> <strike> <strong>”. Any idea how to remove this bit? 

    Thank you!

    JT

    #30439
    Jesse Owens
    Guest

    Hi JT, sorry for my misunderstanding! 
    That irksome area is a part of the discussion section, so I misunderstood what you meant there.

    We can use a little bit of Custom CSS to make sure these aren’t displayed for your visitors. Navigate to Customize -> Advanced -> Custom JS & CSS and paste the following code into the box labeled Custom Theme CSS.

    .comment-form > .form-allowed-tags { display: none; }
    .comment-form > .alert { display: none; }

    Hide comment form alert

    I hope this does the trick for you!

    #30440
    JT890
    Guest

    This is amazing! Works like a dream 🙂 Many thanks, Jesse!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Hello! I am trying to remove the comments section in a blog that says “You may use these HTML tags and attributes: …”. I’ve looked at some previous answers but can’t seem to work it out. Would be great to get some help!’ is closed to new replies.