JSM's Google OFF for Preformatted Content

Descripci贸n

Add googleoff/googleon HTML comment tags before/after preformatted content and textarea HTML tags — ie. includes both the <pre></pre> and <textarea></textarea> HTML tags. This is especially useful to fix “syntax highlighting” plugins that substitute preformatted HTML tags by textareas. 馃槈

The plugin uses a PHP output buffer — instead of WordPress content, excerpt, and comment filters — to prevent caching and HTML optimizing plugins from removing the googleoff/googleon HTML comments.

Example:

<!-- googleoff: all -->
<textarea>
Excluded content from the Google index.
</textarea>
<!-- googleon: all -->

There are no plugin settings — simply install and activate the plugin.

See Google’s Preparing for a Crawl document for more info about googleoff/googleon:

Excluding Unwanted Text from the Index

There may be Web pages that you want to suppress from search results when users search on certain words or phrases. For example, if a Web page consists of the text “the user conference page will be completed as soon as Jim returns from medical leave”, you might not want this page to appear in the results of a search on the terms “user conference”.

You can prevent this content from being indexed by using googleoff/googleon tags. By embedding googleon/googleoff tags with their flags in HTML documents, you can disable:

  • The indexing of a word or portion of a Web page.
  • The indexing of anchor text.
  • The use of text to create a snippet in search results.

Instalaci贸n

Automated Install

  1. Go to the wp-admin/ section of your website.
  2. Select the Plugins menu item.
  3. Select the Add New sub-menu item.
  4. In the Search box, enter the plugin name.
  5. Click the Search Plugins button.
  6. Click the Install Now link for the plugin.
  7. Click the Activate Plugin link.

Semi-Automated Install

  1. Download the plugin ZIP file.
  2. Go to the wp-admin/ section of your website.
  3. Select the Plugins menu item.
  4. Select the Add New sub-menu item.
  5. Click on Upload link (just under the Install Plugins page title).
  6. Click the Browse… button.
  7. Navigate your local folders / directories and choose the ZIP file you downloaded previously.
  8. Click on the Install Now button.
  9. Click the Activate Plugin link.

Colaboradores & Desarrolladores

“JSM's Google OFF for Preformatted Content” es software de c贸digo abierto. Las siguientes personas han contribuido a este plugin.

Colaboradores

Historial de cambios

Version Numbering

Version components: {major}.{minor}.{bugfix}[-{stage}.{level}]

  • {major} = Major structural code changes / re-writes or incompatible API changes.
  • {minor} = New functionality was added or improved in a backwards-compatible manner.
  • {bugfix} = Backwards-compatible bug fixes or small improvements.
  • {stage}.{level} = Pre-production release: dev < a (alpha) < b (beta) < rc (release candidate).

Repositories

Changelog / Release Notes

Version 1.0.0 (2018/07/02)

  • New Features
    • Initial release.
  • Improvements
    • None.
  • Bugfixes
    • None.
  • Developer Notes
    • None.