Plugin / JSM's Google OFF for Preformatted Content

JS Morisset

Description

Description

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.

Ratings

0
0 reviews

Rating breakdown

Details Information

Version

1.0.0

First Released

01 Jul, 2018

Total Downloads

764

Wordpress Version

3.9 or higher

Tested up to:

5.3

Require PHP Version:

5.6 or higher

Tags

Contributors

Languages

The plugin hasn't been transalated in any language other than English.

DIRECTORY DISCLAIMER

The information provided in this THEME/PLUGIN DIRECTORY is made available for information purposes only, and intended to serve as a resource to enable visitors to select a relevant theme or plugin. wpSocket gives no warranty of any kind, express or implied with regard to the information, including without limitation any warranty that the particular theme or plugin that you select is qualified on your situation.

The information in the individual theme or plugin displayed in the Directory is provided by the owners and contributors themselves. wpSocket gives no warranty as to the accuracy of the information and will not be liable to you for any loss or damage suffered by you as a consequence of your reliance on the information.

Links to respective sites are offered to assist in accessing additional information. The links may be outdated or broken. Connect to outside sites at your own risk. The Theme/Plugin Directory does not endorse the content or accuracy of any listing or external website.

While information is made available, no guarantee is given that the details provided are correct, complete or up-to-date.

wpSocket is not related to the theme or plugin, and also not responsible and expressly disclaims all liability for, damages of any kind, arising out of the use, reference to, or reliance on, any information or business listed throughout our site.

Keep Leading Your Followers!
Share it for them.