PuzzlersWorld.com

  • Hacker Puzzle
  • Interview Puzzles
  • Number Puzzles
  • Maths Puzzles

WordPress Copy to Clipboard Plugin

As you might have seen, we are now providing a CLICK TO COPY AND WHATSAPP button for whatsapp puzzles with emoticons to you. we tried to use existing plugin on wordpress to achieve this, but unfortunately we did not find any good plugin which looks good, works well and handles all browsers(mobile + desktop), so we decided to do it ourselves, and while we did it, we decided to help others by hosting this plugin.

Copy To Clipboard – mobile + web plugin for whatsapp

This is the plugin to copy text to clipboard on click of a button on desktop browsers and mobile web browsers. It usage flash to auto copy on click of the button, for the browsers where flash is not available, it shows the popup with pre-selected text and user can copy it easily.
– Flexibility to change caption, width, height of the button.
– Option to add a suffix to copied text, by default suffixes your blog url.
– Option to call a javascript method on click of the button, by default sends Click event to your Google Analytics account.

It usage LMCButton, http://www.lettersmarket.com/view_blog/a-3-copy_to_clipboard_lmcbutton.html to copy text using flash and http://www.featureblend.com/javascript-flash-detection-library.html to detect flash.

Checkout the plugin on wordpress @ http://wordpress.org/plugins/copy-to-clipboard-mobile-web/

Installation Instructions

  1. Upload the `pw-clipboard` folder to the `/wp-content/plugins/` directory or use plugin search – Admin > Plugins > Add new > Search for ‘Copy To Clipboard – mobile + web’
  2. Activate the Plug-in
  3. Add a the shortcode to your post like so: [ pw-clippy caption=”Copy”]Text to Copy goes here[/pw-clippy ], remove space between bracket and pw-clippy text
  4. Test that the this plug-in meets your demanding needs.
  5. Rate the plug-in and verify if it works at wordpress.org.
  6. Leave a comment regarding bugs, feature request, cocktail recipes on this page.

More configurations

  1. caption, default value=>Copy
  2. width, default value 100
  3. height, default value 25
  4. js, by default sends event to your google analytics account, you can pass empty string to avoid this.
  5. suffix, by default appends “via <your blog url> at the end, you can pass empty string to avoid this.

Screenshots

Screenshot for flash buttons, works on almost all desktop browsers, tablets

Screenshot for flash buttons, works on almost all desktop browsers, tablets

Screenshot for no flash buttons, (on mobile browsers).

Screenshot for no flash buttons, (on mobile browsers).

Screenshot for pop-up, opens on clicking no flash button

Screenshot for pop-up, opens on clicking no flash button

Facebook Comments

Comments

  1. Willem says

    July 10, 2016 at 2:07 am

    Hi, your Copy To Clipboard plugin works great.

    I’m trying to move the pop-up closer to the top but can’t figure out how. Is it possible to reposition it?

    Thanks

    Reply
  2. Jonas says

    March 13, 2015 at 5:07 pm

    Hi there!
    I have some trouble by using the plugin. I want to copypaste a function for excel.
    =WENN(((B2>=$I$2)*(C2>=$I$3)*(D2>=$I$4)*(E2>=$I$5)=1;”JA”;”NEIN”)
    Problems are concerning this symbol: ”
    I have to rewrite it in excel if it should work correctly. Because there are different translations of ” in excel, depending on what kind of symbol I use, I don’t know how to do it in the right way. Can someone help me?

    Reply
  3. Sam says

    October 7, 2014 at 6:28 pm

    How can we use this code in the JS file? Please reply….

    Reply
  4. ed says

    May 12, 2014 at 2:55 pm

    I was wondering if you can also make the button link to another web page or site?

    Reply
    • puzzlersworld says

      May 15, 2014 at 12:39 pm

      Yes you can do that using js option, pass the javascription function name in this. this method will be called when user clicks on the button, you can open the new link in the method

      Reply
      • D3 says

        August 27, 2014 at 4:30 am

        Hello,
        I don’t understand it. Could you answer me this question?
        http://wordpress.org/support/topic/button-link-5

        And help me make it done? Thank you very much.

        Reply
        • puzzlersworld says

          August 9, 2015 at 11:32 pm

          Sorry for the late reply

          You can call any javascript mehtod like this, however there is no way to change the text and color etc.

          [pw-clippy caption1="Text1" js="onCopy('http://xyz.com')"]Text to copy[/pw-clippy]

          Now you can define this method in any javascript file or in your header.php

          onCopy(url){
          //You might need to change this implementation
          window.open(url,’_blank’);
          }

          Reply
      • D3 says

        September 1, 2014 at 9:50 pm

        Please

        Reply
      • mounika mano says

        July 21, 2015 at 11:26 am

        How can i do this please help

        Reply
      • mounika mano says

        July 29, 2015 at 5:06 pm

        Hello please help on this, ho to do it

        Reply

Leave a Comment Cancel reply

Submit your Puzzle

Categories

  • Aive hi Puzzles
  • Akbar and Birbal
  • Alphabetical Puzzles
  • Bollywood Puzzles
  • Google Code jam
  • Hindi Riddles
  • Interview Puzzles
  • Interview Questions
  • Logical Puzzles
  • Malayalam Puzzles
  • Maths Puzzles
  • Miscellaneous
  • Number Puzzles
  • Picture Puzzles
  • Riddles
  • Tamil Puzzles
  • Technical

Social

  • View puzzlersworld’s profile on Twitter
privacy policy

Copyright © 2025 · eleven40 Pro Theme on Genesis Framework · WordPress · Log in

  • Hacker Puzzle
  • Logo Puzzles
  • Optical Illusions
  • WhatsApp Puzzles
  • Picture Puzzles
  • Riddles
    ▼
    • Hindi Riddles
  • Bollywood Puzzles
  • Alphabetical Puzzles
  • Aive hi Puzzles
  • Interview Puzzles
  • Logical Puzzles
  • Interview Questions
    ▼
    • Data Structures
    • Binary Tree
    • Algorithms
    • Recursion Questions
    • Amazon Interview Questions
    • Snapdeal Interview Questions
    • Google Code jam
  • Technical
  • Akbar and Birbal
  • Number Puzzles
  • Maths Puzzles
  • Miscellaneous