https://github.com/appfigures/wp-blockshare
A Wordpress plugin that adds tweet/like buttons to a block of text
https://github.com/appfigures/wp-blockshare
Last synced: 4 months ago
JSON representation
A Wordpress plugin that adds tweet/like buttons to a block of text
- Host: GitHub
- URL: https://github.com/appfigures/wp-blockshare
- Owner: appfigures
- Created: 2014-12-21T04:09:18.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-12-21T05:57:30.000Z (over 11 years ago)
- Last Synced: 2024-12-30T21:52:17.545Z (over 1 year ago)
- Language: PHP
- Size: 164 KB
- Stars: 1
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WP BlockShare
A simple Wordpress plugin that adds tweet and like buttons to `
` elements with the content as the tweet/like message.
// TODO: add image of example (what it looks like on the blog + what the popup looks like)
## Using the plugin
BlockShare will append sharing buttons to every `
` element when activated. If you want your tweets to mention you, add your Twitter handle in the plugin's admin settings page.
That should be it. If you want to customize the plugin's behavior and/or look read on.
## Custom block patterns
Out of the box, BlockShare appends tweet and like buttons to every `
` element. To apply BlockShare to a different type of element create a custom pattern in the plugin's admin page.
Custom patterns require two things: an _opener_ tag and a _closer_ tag.
Example:
* Opener: `
`
* Closer: `
`
## Custom CSS
By default, the plugin uses a simple stylesheet to display the tweet and like buttons. You can turn prevent the built-in stylesheet from being included inside the admin settings page and supply your own styles.
The plugin generates the following elements:
----
Feel free to use this plugin as you see fit wherever you feel like it'll do some good. If you run into any issues or have any suggestions for improvement please open an issue or submit a pull request.