Highlight and Share

Description

A WordPress plugin for highlighting text and sharing it via Twitter and Facebook.

Sharing selectable text is only possible via Twitter and Facebook, but an option to share the post via LinkedIn, Pinterest, and E-mail are also present when highlighting text as a convenience.

This plugin is intended to be highly flexible in selecting content areas (via the Plugin’s settings). If you’re looking for something more plug-and-play, please try Quotable.

If you have a feature request, please add a GitHub issue.

Features

  • Enable or disable on main content and excerpts.
  • Enable or disable Facebook sharing.
  • Enable or disable Twitter sharing.
  • Customize the Twitter username used.
  • Advanced: Override which content is selectable (using jQuery class notation without the dots).

Advanced customization is allowed via hooks. See the plugin’s GitHub page for filter documentation.

Recommended Plugins

Spread the Word

If you like this plugin, please help spread the word. Rate the plugin. Write about the plugin. Something 🙂

Translations

Please translate using the Translate button on this page.

You are welcome to help us out and contribute on GitHub.

Screenshots

  • Highlight and Share settings.
  • Highlight and Share on a post with icons.
  • Highlight and Share on a post with all options showing.
  • Highlight and Share with custom CSS.

Installation

  1. Just unzip and upload the “highlight-and-share” folder to your ‘/wp-content/plugins/’ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

FAQ

Installation Instructions
  1. Just unzip and upload the “highlight-and-share” folder to your ‘/wp-content/plugins/’ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
Can I share text using Facebook?

Facebook disabled that portion of the sharing API, so no, it is not possible. If you don’t like Facebook sharing, you can disable it via the plugin’s options.

Will you be adding more sharing services?

Possibly. Open up an issue.

I want to include my own CSS. How can I do that?

Use the plugin hook has_show_css and disable CSS. You can then include your own CSS in your theme.

Does this plugin work on mobile devices?

Yes, it has successfully been tested on iOS and Android devices.

What Browsers Have You Tested This In?

So far, the latest versions of Chrome, Firefox, and Safari. Works for IE9+

What Themes Have You Tested This In?
  • Twenty Thirteen
  • Twenty Fourteen

Reviews

Perfect for my needs

This plugin provides the option to pass in a custom URL instead of using the post url in the tweet. It requires modifying the functions file but the code snippet is provided. I needed a little extra help figuring out how to pass in the custom field and Ronald responded right away with the fix.

As far as the plugin, I love the highlight and tweet functionality. Thanks for creating this plugin!

Shortlinks not working, have to look for alternative

If I’m missing something I would be very happy to be wrong. Because right now all my tweets are to long, should also have the option to make quotes as an option and adding @ because both these features reduce the characters allowed selecting text.

Sweet & Mostly Simple 🙂

I only just started using this plugin last week, but already I’m impressed. It works much better than the previous highlighter I was using (SumoMe). Once I went through the documentation for the filters, I was able to customize things exactly the way I want. It’s a more flexible and lightweight highlighter than the others I’ve tried and/or looked at.

The only *thing* I want to mention is that the documentation could be clearer. Specifically, the purpose of each filter could be better explained. Only after a few cracks at it and a bit of trial and error with various filters was I able to figure out the correct ones to use.

Read all 8 reviews

Contributors & Developers

“Highlight and Share” is open source software. The following people have contributed to this plugin.

Contributors

“Highlight and Share” has been translated into 1 locale. Thank you to the translators for their contributions.

Translate “Highlight and Share” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

2.1.5

  • Released 2017-11-15
  • CSS adjustment for better theme compatibility.

2.1.2

  • Released 2017-02-12
  • Fixing iOS/Android issue with highlighted text being only the initial selection.

2.1.0

  • Released 2017-01-11
  • Sharing via Facebook is now possible if you create a Facebook application ID.

2.0.1

  • Released 2016-10-20
  • Fixing %text% issue in iOS10.

2.0.0

  • Released 2016-05-21
  • Enhancement: Added LinkedIn, Pinterest, and E-mail buttons
  • Enhancement: Allow icons only view.

1.2.7

  • Released 2015-11-08
  • Fixing polish translation

1.2.5

  • Released 2015-11-08
  • Added Polish translation
  • Added minified scripts

1.2.1

  • Updated 2015-10-29
  • Testing for WordPress 4.4
  • Added German translation

1.2.0

  • Updated 2015-09-07
  • Fixed loading order of initial filters to be better overridable in the context of a WordPress query
  • Fixed typo in the admin section
  • Added filter to change content URL

1.1.2

  • Updated 2015-08-20 – WordPress 4.3 compatibility
  • Released 2015-04-19
  • Fixing issue with multiple twitter popups.
  • Ensuring WordPress 4.2 compatibility.

1.1.1

  • Released 2015-03-18
  • Added filter for customizing the jQuery selectors

1.1.0

  • Released 2015-03-16
  • Added option for shortlink in the settings
  • Removed the requirement for having to set a Twitter handle

1.0.0

  • Updated 2014-12-11 – Ensuring WordPress 4.1 compatibility
  • Released 2014-12-03
  • Initial release on WordPress.org