How To Generate QR Code for Posts and Pages WordPress

QR code preview

Welcome! In this post we will share with you how to add snippet code for generate QR Code for your post or page. 

But what's benefits of that. 

  • You can add QR Code in print style for sharing source and article.
  • You can minimalize time to Access a site in another device.
  • Reaching a larger segment of people
Add this small snippet to the single.php file of your WordPress theme inside the Loop at the location you wish to display the QR code. To adjust the size of the QR image, just change the following within the src attribute: size=100x100. For example, to make a image that is 200px by 200px, change the value to size=200x200 or any size you need .
<img src="http://api.qrserver.com/v1/create-qr-code/?size=100x100&data=<?php the_permalink(); ?>" alt="QR:  <?php the_title(); ?>"/>
 

RUN !

QR code preview

If you Like this post share it

Welcome! My name is Saad, I'm web developer, graphic designer and UI/UX designer. I love creating fun things.

Post a Comment

© Wird Dev. All rights reserved. Developed by Jago Desain