這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 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