Home / Tutorials / Generate Barcode for Website
barcode

Generate Barcode for Website

We know about barcode which is used to scan products, price etc. but now days new technology comes in smart phones to scan Data Matrix and QR Codes containing URLs, contact info, etc

So as a developer we should know how to generate barcode for website.

To create a Barcode, you need to know about a Syntax required on barcode website. Here is official google page for detail. Google Official Page

Using code bellow to generate barcode for a URLs:

  • chs: for define image size
  • cht: for define code type
  • chl: for define URLs website

Example:
<img src=”https://chart.googleapis.com/chart?chs=500×500&cht=qr&chl=http://codemorning.xyz” />
This code generate barcode as below image:
barcode

 

To generate barcode for your wordpress blog, use  <strong>the_permalink()</strong> in place of website url.

Example: <img src=”https://chart.googleapis.com/chart?chs=500×500&cht=qr&chl=<?php the_permalink();?>” />

😉

About cmadmin

Web Developer & Designer | Android App Developer

Login


Username
Create an Account!
Password
Forgot Password? (close)

Sign Up


Username
Email
Password
Confirm Password
Want to Login? (close)

Forget Password?


Username or Email
(close)
SHARE
OR
SUBSCRIBE
To get latest new / tutorial / technology / development information subscribe with us.
ARE YOU READY? GET IT NOW!
Lets Get Updated with latest trends & tutorials!
Your Information will never be shared with any third party.
Ready for latest tutorials & tools !
OR SUBSCRIBE WITH