WordPress allows only some HTML tags in comments to prevent XSS vulnerabilities. The not allowed tags are simply deleted when a
comment is posted. The allowed tags are stored in a global WordPress variable that you have to edit if you want add allowed tags.
With this plugin, you can simply edit this variable and add an HTML tag or an attribute to the allowed tags list. There is no file
to edit, you just have to go on the plugin configuration page and edit the allowed tags list. It’s easy and efficient !
HTML tags encoding
Sometimes, you may have to put HTML code in your comments to answer your visitor’s questions. In that case, you generally put
your HTML code between two tags : code and pre. This plugin automatically encode HTML tags which are between pre and code
tags. So WordPress will not delete your HTML code and your code will be visible on the web-page.
Force link’s target
When your visitors put links in comments, WordPress automatically add the attribute rel="nofollow. It’s really usefull for your
site’s SEO but you perhaps don’t want your visitors follow this links and they leave your site. With this plugin, you can choose
to force target attribute value to _blank in all links of your comments. So, the links will be opened in new window, your visitors
don’t leave your site and you are happy.
Contribute
As you can see, my English is not perfect. If you want to correct me, you are welcome !
You can contact me on my website or do a pull request on Github 😉
Links
The Github repository (if you want to contribute) : https://github.com/ludovicscribe/wordpress-html-code-comments
The plugin page on my website : https://ludovicscribe.fr/blog/wordpress-commentaires-html
Automatic installation :
On the plugin addition page, enter “html code comments” in the search field
Click the install button on the “HTML Code Comments” plugin
Wait for installaltion end and click the activate button.
Manual installation :
Unzip the downloaded zip file.
Upload the html-code-comments folder and its contents into the wp-content/plugins/ directory of your WordPress installation
Activate HTML Code Comments from Plugins page.
Next, go on the “HTML code in comments” page in “Settings” section of your WordPress administration and set your allowed tags and enable
or disable options. Finally, enjoy !
HTML Code Comments
توسط ludovicscribe
گزارش خرابی
اگر با مشکلی مواجه شدهاید،
لطفاً آن را با جزئیات برای ما ارسال کنید.
🔒 برای ثبت گزارش خرابی باید وارد سایت شوید.
ورود / ثبت نام به سایت
Allowed tags edition
WordPress allows only some HTML tags in comments to prevent XSS vulnerabilities. The not allowed tags are simply deleted when a
comment is posted. The allowed tags are stored in a global WordPress variable that you have to edit if you want add allowed tags.
With this plugin, you can simply edit this variable and add an HTML tag or an attribute to the allowed tags list. There is no file
to edit, you just have to go on the plugin configuration page and edit the allowed tags list. It’s easy and efficient !
HTML tags encoding
Sometimes, you may have to put HTML code in your comments to answer your visitor’s questions. In that case, you generally put
your HTML code between two tags :
codeandpre. This plugin automatically encode HTML tags which are betweenpreandcodetags. So WordPress will not delete your HTML code and your code will be visible on the web-page.
Force link’s target
When your visitors put links in comments, WordPress automatically add the attribute
rel="nofollow. It’s really usefull for yoursite’s SEO but you perhaps don’t want your visitors follow this links and they leave your site. With this plugin, you can choose
to force
targetattribute value to_blankin all links of your comments. So, the links will be opened in new window, your visitorsdon’t leave your site and you are happy.
Contribute
As you can see, my English is not perfect. If you want to correct me, you are welcome !
You can contact me on my website or do a pull request on Github 😉
Links
The Github repository (if you want to contribute) : https://github.com/ludovicscribe/wordpress-html-code-comments
The plugin page on my website : https://ludovicscribe.fr/blog/wordpress-commentaires-html
Automatic installation :
Manual installation :
Next, go on the “HTML code in comments” page in “Settings” section of your WordPress administration and set your allowed tags and enable
or disable options. Finally, enjoy !
سوالات متداول
ورود / ثبت نام
عنوان
×قیمت:
رایگان
نگارش
1.1.1
آخرین انتشار
29 اردیبهشت 1405
آخرین بروزرسانی
3 ماه پیش
نصب های فعال
10+
نگارش وردپرس
وردپرس 1.5.2+
تست شده از نسخه
وردپرس 4.7.33
نگارش PHP
-
تگ ها
code comment html tag
نسخه ها
1 نسخه
نیاز به پشتیبانی دارید ؟
کارشناسان ما آماده پاسخگویی هستند
افزونه های مرتبط
Cache by Folium
★★★★☆ 84.0/۱۰۰
(10 امتیاز)
Fast, easy to use cache for WordPress with option for up-to 3 separate CDN’s – for js, css & images from 3 providers. Added
Dienstplan
Dienstplan is a self-hosted shift and duty roster planner for WordPress. It is built for organisations that run on volunteers — fire departments, emergency
Cashu For WooCommerce
A secure Cashu payment gateway for your WooCommerce store. This plugin adds a checkout that accepts Lightning or Cashu ecash, paying out to your
Quote & Cut
Quote & Cut connects WooCommerce to the Quote & Cut cloud service for laser-cutting and sheet-optimization workflows. With this plugin you can: Accept DXF
Simple Stopwatch Easy to Use
Simple Stopwatch Easy to Use lets you embed a fully functional stopwatch anywhere on your WordPress site using a simple shortcode. Features: Start, Stop,
RoidNet URL Shortener and Link Tracker
A lightweight, secure, and self-hosted solution to shorten URLs, track link clicks, and generate WhatsApp chat links. RoidNet URL Shortener and Link Tracker is