该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

CSS Email Obfuscator

描述

Obfuscate your email address by using a simple shortcode. Because the obfuscation is purely done in CSS, the email address remains readable for screen reader software.

Usage

Email address only:

[css-email-obfuscator]you@example.com[/css-email-obfuscator]

Clickable email address:

[css-email-obfuscator mailto="yes"]you@example.com[/css-email-obfuscator]

Clickable email address with custom link text:

[css-email-obfuscator mailto="yes" email="you@example.com"]Contact me[/css-email-obfuscator]

屏幕截图

  • Email address only
  • Clickable email address
  • Clickable email address with custom link text

安装

  1. Upload the css-email-obfuscator folder to /wp-content/plugins/
  2. Activate the plugin (CSS Email Obfuscator) through the Plugins menu in WordPress
  3. Use the shortcode in any post, page or custom post type.

常见问题

Is JavaScript required to obfuscate the email address?

No. This solution is purely based on CSS and won’t use JavaScript at all.

Are screen readers able to read the obfuscated email address?

Yes, because obfuscation is made using pure CSS.

Is the clickable email address still obfuscated?

Yes, but due to the limitations of CSS, the contents of the href attribute will be encoded as ASCII entities.

Does the plugin work with punnycode (umlaut) domains in email addresses?

Yes, as long as your blog’s charset is set to UTF-8 (wich is default).

评价

2020 年 4 月 5 日
I was in need of hiding email addresses, and installed CSS Email Obfuscator. It has worked great so far. It opens my email client properly.
阅读所有2条评价

贡献者及开发者

「CSS Email Obfuscator」是开源软件。 以下人员对此插件做出了贡献。

贡献者

更新日志

1.0.0

  • Initial release