Code Monkey home page Code Monkey logo

wp-inlinetweetjs's Introduction

Wordpress InlineTweet.js

A wordpress plugin for InlineTweet.js

InlineTweet.js allows you to easily create tweetable links out of any text on a webpage. Just wrap the tweetable text in a container with data-inline-tweet and you're good to go!

How to Use

1 - Upload & Activate Plugin

Dowmload this repository and upload it to your wordpress site. Make sure to activate the plugin as well.

2 - Global Settings

You can set some global settings for all Inline Tweets in your wordpress site. Do this by going to Settings > Inline Tweets. You can set the following global settings -

  • Add a twitter username (without the @) to append to the tweet
  • Add hashtags to the tweet (comma-separated, no spaces)
  • Wrapper element for tweets (default is <span>)

3 - Use Shortcode

You can now use the shortcode anywhere on your wordpress site.

[inlinetweet]Click here to tweet this![/inlinetweet]

3 - Local Settings

You can change any of the settings for the tweet locally -

You can add more data attributes to cutomise the tweeted output -

  • via โ€” Add a twitter username (without the @) to append to the tweet
  • tags - Add hashtags to the tweet (comma-separated, no spaces)
  • url โ€” Tweet a URL different to the current page url
  • wrapper - The element that wraps the tweet
[inlinetweet via="creativecatapps" 
	     tags="webdesign,webdev,js,yolo" 
	     url="https://www.creativecatapps.co.uk/"
	     wrapper="p"]
	Lorem Khaled Ipsum is a major key to success 
[/inlinetweet]

wp-inlinetweetjs's People

Contributors

preciousomonze avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.