How to Add Text or Code Box on blogger with a Copy to Clipboard button

How to Add Text or Code Box on blogger with a Copy to Clipboard button
How to Add Text or Code Box on blogger with a Copy to Clipboard button 

You may just follow the steps below

Step 1: Go to Dashboard, Theme, and Edit HTML button

Step 2: Copy this JS code and paste it above </head> tag


Step 3: Copy this JS code and paste it above  tag


Step 4: Copy this CSS code and paste it above ]]></b:skin< tag


Step 5: Now save the HTML edit page and open any post and where you want the Text or Code you want it to be appearing, copy the below code. Now you can write your text or code by replacing "Add-Your-Text-or-Codes-Here" ]]></b:skin> tag


Step 6: If you want your copy to clipboard button looks gradian like mine, replace background: #0066ff; within button.ClickToCopyButton with the below code


Step 7: And background: #000; within button.ClickToCopyButton:hover with the below code

Post a Comment

Previous Post Next Post

Cookies Consent

This website uses cookies to offer you a better Browsing Experience. By using our website, You agree to the use of Cookies

Learn More