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

Hide Links

描述

Hides external links from indexing by search engines using a jQuery masking links script ( more about the method in )

FEATURES:

  • One click on editor button help to hide external links in search engine index
  • Automatically disallows indexing of all commenter’s links.
  • Simple shortcode [link][/link] easily hides any links in widgets or comments texts.

USAGE

  1. In text editor place cursor on link
  2. Click on HideLinks button to add shortcode before and after link. Sample: [link]external link[/link]

TESTING

After installing and activating plugin, hidden links look like ordinary ones. This moment can mislead and complicate work of plugin.

You can check whether plugin works correctly in two ways.

  1. On page, where there are hidden link or user comments, press keyboard shortcuts Ctrl+U — new tab with source code opens.
  2. Now press Ctrl+F on keyboard — field for text searching appears. Enter phrase in it data-link and press Enter on your keyboard.
  3. Browser found in source code all matches with necessary phrase (it is present in hidden link). In search box to the right of entered phrase, inscription with number of found matches appears (i.e. hidden links), and near — arrows for transition to previous and next found fragment.
  4. If in found fragment after phrase data-link goes link address you have hidden (or site address commentator) — it means that plugin hides link.

Sample: <span data-link="http://mylink.com" data-target="_blank" title="Title" class="link">anchor</span> not like this: <a href="http://mylink.com" target="_blank" title="Title" class="">anchor</a>

PRO Features

HideLinks Pro allow:

  1. Automatically hide all external links in post content
  2. Control script including (inline or file)

Extra

屏幕截图

  • HideLinks button in visual editor

安装

From your WordPress dashboard

  1. Visit PluginsAdd new
  2. Search for Hide Links and click Install button on HideLinks plugin
  3. Activate HideLinks from your Plugins page.
  4. Visit PostsAdd new and find new button at visual editor

From WordPress.org

  1. Download and unzip hidelinks.zip
  2. Upload the hidelinks directory to your /wp-content/plugins/ directory, using your favorite method (ftp, sftp, scp, etc…)
  3. Activate HideLinks from your Plugins page.
  4. Visit PostsAdd new and find new button at visual editor

常见问题

Installation Instructions

From your WordPress dashboard

  1. Visit PluginsAdd new
  2. Search for Hide Links and click Install button on HideLinks plugin
  3. Activate HideLinks from your Plugins page.
  4. Visit PostsAdd new and find new button at visual editor

From WordPress.org

  1. Download and unzip hidelinks.zip
  2. Upload the hidelinks directory to your /wp-content/plugins/ directory, using your favorite method (ftp, sftp, scp, etc…)
  3. Activate HideLinks from your Plugins page.
  4. Visit PostsAdd new and find new button at visual editor
Why hidden links are displayed as ordinary text?

There are script errors on site and because of them code link substitution doesn’t work.

In this case, you can try to disable all plugins except HideLinks and again check links – if on site page they have become clickable, then it means that error in scripts is caused by one of plugins. Try to activate plugins one by one, checking each time whether hidden link becomes ordinary text on page.

If there is still a problem after deactivating plugins, it means that error can be caused by scripts from theme. In this case, you will need help of professional. In order to make sure that problem is in script error – you can contact technical support specifying site address.

Зачем закрывать ссылки от индексации?

Главная причина сокрытия ссылочной массы с сайта – это утечка веса.

Почему бы просто не использовать `rel=”nofollow”` для Google и “ для Яндекс?

Тег noindex (Яндекс) и атрибут nofollow (Google) не прячут ссылки от поисковиков, а только рекомендуют поисковым роботам не индексировать ссылки. Решение о индексации и учете этих ссылок принимается поиковой системой.

评价

2019 年 8 月 28 日
Приветствую! Все еще актуален для закрытия этот метод? Слышал, что google уже распознает такого рода методы и требуется что-то вроде (невозможно увы пример показать). Кто-нибудь знает наверняка?
2018 年 3 月 5 日
almost perfect.... looking for a way to hide the links in the menu as well. was looking for a plug in like this for ages! Thank you!
2016 年 9 月 3 日
Пользуюсь уже довольно давно поэтому мое отношение к плагину проверено временем) Hide Links удобный, действенный и, в то же время, простой плагин. Особенно нравится то, что его постоянно обновляют и совершенствуют, автору респект!!
阅读所有13条评价

贡献者及开发者

“Hide Links” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

「Hide Links」插件已被翻译至 1 种本地化语言。 感谢所有译者为本插件所做的贡献。

将“Hide Links”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.4.2

  • rename translation files

1.4.1

  • translation domain fix

1.4

  • Tested up to WordPress 4.9.6
  • update translations

1.3

  • Tested up to WordPress 4.9
  • add: rel=noopener by default

1.2

  • Tested up to WordPress 4.8
  • Fix: problem with shortcode setup, when link is in begin or end of paragraph
  • Add: do shortcodes in link text
  • Add: Localization

1.1

  • Added: visual editor button with which you can easily add or remove shortcode around link.

1.0.4

  • Added: secure comment for script (in script)
  • Added: commentator’s link replacement which is displayed via get_comment_author_url_link

1.0.3

  • Added: saving class attribute in script replacement, if there is any, for link

1.0.2

  • Fixed: error with class setting for link of author’s comment

1.0.1

  • Fixed: fatal error with setting class for tag span with picture inside
  • Now in comment text and text widget you can use shortcode [link][/link] to close links, adding it around html – code of standard hyperlink

1.0

  • Release