Skip Navigation

[Resolved] Want to hide part of standard comment text

This thread is resolved. Here is a description of the problem and solution.

Problem:

hide part of standard comment text:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <del datetime=""> <q cite=""> <s> <strike>

Solution:

In your case, you can hide it with simple CSS codes, for example:

p.form-allowed-tags + pre{
    display: none;
}

Relevant Documentation:

This support ticket is created 6 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 3 replies, has 2 voices.

Last updated by Luo Yang 6 years, 3 months ago.

Assisted by: Luo Yang.

Author
Posts
#1097935
#1098400

Dear Robert,

The Comment form is defined in your theme files, for example, in wordpress default theme 2017, it is file "comment.php",

In your case, you can hide it with simple CSS codes, for example:

p.form-allowed-tags + pre{
    display: none;
}
#1098789

Dear Luo

Thanks for your advice. Your code works perfectly.
Regards

Robert

#1098834

You are welcome