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

2 comments

  1. Hello there, I discovered your blog by means of Google
    at the same time as looking for a similar subject, your website got
    here up, it seems good. I have bookmarked it in my google bookmarks.

    Hello there, simply changed into alert to your weblog thru
    Google, and located that it’s really informative. I’m going to watch out for brussels.
    I’ll appreciate if you happen to continue this in future.
    Numerous other people might be benefited from your writing.
    Cheers!

  2. moneycontrol.com

    magnificent submit, very informative. I ponder why the opposite specialists of this sector don’t realize this.
    You must continue your writing. I am sure, you have a great readers’ base already!

Leave a Reply

Your email address will not be published. Required fields are marked *

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)
%d bloggers like this:
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