wordpress生成静态_如何在WordPress中生成和添加QR码

wordpress生成静态

Marketers have been debating on whether QR codes are dying or still has value for quite some time. eMarketer stats show that 39% of US citizens between 18-24 have used QR scans in magazines, 38% in mail, 35% on posters, and 21% on websites. Recently one of our users asked us if it was possible for their local business to add a QR code on their site. In this article, we will show you how to generate and add QR Codes in WordPress.

营销人员一直在争论QR码是否垂死或仍然有价值。 eMarketer的统计数据显示,39%的18至24岁的美国公民在杂志上使用QR扫描,在邮件中使用38%,在海报上使用35%,在网站上使用21%。 最近,我们的一位用户问我们,他们当地的公司是否可以在自己的网站上添加QR码。 在本文中,我们将向您展示如何在WordPress中生成和添加QR代码。

QR Code abbreviated for Quick Response Code is a type of two dimensional matrix barcode. Since the arrival of barcode scanner apps in mobile phones, QR Codes have been utilized by many on websites, virtual stores, and online communities. A QR Code is usually an image with white background and black squares and dots in a square shape container. Businesses can use QR codes to offer exclusive discounts, show special offers and more.

缩写为“快速响应代码”的QR码是一种二维矩阵条形码。 自条形码扫描仪应用程序进入手机以来,QR码已被许多网站,虚拟商店和在线社区所使用。 QR码通常是在方形容器中带有白色背景,黑色正方形和点的图像。 企业可以使用QR码提供独家折扣,显示特别优惠等。

If you want to add QR Codes in WordPress, then the first thing you need to do is to install and activate QR Code Generator plugin. Using the plugin is extremely simple. You can generate QR code inside your posts or pages using the shortcode like this:

如果您想在WordPress中添加QR Code,那么您要做的第一件事就是安装并激活QR Code Generator插件。 使用插件非常简单。 您可以使用以下简短代码在帖子或页面内生成QR码:

[qrcode content="Your content goes here" size="150" alt="QrCode" class="qrcode" credit="FALSE"]

[qrcode content="Your content goes here" size="150" alt="QrCode" class="qrcode" credit="FALSE"]

QRCode displayed inside a WordPress sidebar widget

In the above shortcode, the content you want to be encrypted in QR code goes inside the content parameter. For this example, we used image size of 150px, but you can define the size of the QR Code image as you want. Setting the credit parameter false will ensure that plugin author’s website link does not gets included in your QR code.

在上面的简码中,要在QR码中加密的内容位于content参数内。 在此示例中,我们使用了150px的图像尺寸,但是您可以根据需要定义QR Code图像的尺寸。 将credit参数设置为false将确保插件作者的网站链接不会包含在您的QR码中。

You can also use this shortcode inside a text widget in your sidebar. If QR Code does not appear in your text widget after using the shortcode, then make sure you have this line added in your theme’s functions.php file.

您也可以在边栏中的文本小部件内使用此短代码。 如果在使用短代码后QR码未出现在文本小部件中,则请确保在主题的functions.php文件中添加了此行。


add_filter('widget_text', 'do_shortcode');

QR Codes can allow mobile phone users to save URLs by scanning the QRCode. These barcode images can be used to convey information in less pixel area. You can use QRCodes to provide contact information, social profile IDs, addresses and many other type of content.

QR码可以使手机用户通过扫描QRCode来保存URL。 这些条形码图像可用于在更少的像素区域中传达信息。 您可以使用QRCode提供联系信息,社交资料ID,地址和许多其他类型的内容。

We hope that this article helped you add QR Codes on your WordPress site. What are your thoughts on QR Codes? Do you ever use the as a user? Does it make sense for you to put it on a website? Let us know by leaving a comment below.

我们希望本文能帮助您在WordPress网站上添加QR码。 您对QR码有何看法? 您曾经以用户身份使用吗? 将其放在网站上是否有意义? 让我们在下面留下评论。

翻译自: https://www.wpbeginner.com/plugins/how-to-generate-and-add-qr-codes-in-wordpress/

wordpress生成静态

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值