wordpress滑动验证_如何在WordPress中添加年龄验证

wordpress滑动验证

Do you want to add age verification to your WordPress website? Some website owners may want to ask their site visitors for age verification before accessing content due to the nature of content and the legal requirements. In this article, we will show you how to easily add age verification on your WordPress site.

您想向您的WordPress网站添加年龄验证吗? 由于内容的性质和法律要求,某些网站所有者可能希望在访问内容之前要求其网站访问者进行年龄验证。 在本文中,我们将向您展示如何轻松地在WordPress网站上添加年龄验证。

Adding age verification to a WordPress website
影片教学 (Video Tutorial)

演示地址

If you don’t want to watch the video tutorial, then you can continue reading the text version below:

如果您不想观看视频教程,则可以继续阅读以下文本版本:

The first thing you need to do is install and activate the Age Gate plugin. For more details, see our step by step guide on how to install a WordPress plugin.

您需要做的第一件事是安装并激活Age Gate插件。 有关更多详细信息,请参阅有关如何安装WordPress插件的分步指南。

Upon activation, the plugin adds a new menu item labeled Age Gate to your WordPress admin area. Clicking on it will take you to plugin’s settings page.

激活后,该插件会在您的WordPress管理区域中添加一个标记为Age Gate的新菜单项。 单击它会将您带到插件的设置页面。

Age Gate settings

First, you need to enter the required minimum age for verification. After that, you can choose whether you want to apply the age verification restriction on all or selected content.

首先,您需要输入所需的最小验证年龄。 之后,您可以选择是否要对所有或选定内容应用年龄验证限制。

The ‘Varied Age’ option allows you to select different minimum age requirements for different posts and pages on your website.

“年龄不同”选项可让您为网站上的不同帖子和页面选择不同的最低年龄要求。

For age verification, the plugin provides three options. You can display a form where users can enter their age, drop down boxes, or simple Yes/No buttons.

为了验证年龄,该插件提供了三个选项。 您可以显示一个表单,用户可以在其中输入年龄,下拉框或简单的“是/否”按钮。

You can also allow users to remember the age verification or go ahead and enable ‘Remember me’ option by default. This would save your users from seeing the age verification message each time they visit your website.

您还可以允许用户记住年龄验证或继续操作,并默认启用“记住我”选项。 这样可以避免用户每次访问您的网站时看到年龄验证消息。

Once you’re done configuring the settings, go ahead and click on the save changes button to store your settings. You can now visit your website to see the age verification screen in action.

配置设置完成后,继续并单击“保存更改”按钮以存储您的设置。 现在,您可以访问您的网站以查看年龄验证屏幕。

Default age verification notice

The default age verification screen doesn’t look very good. Let’s take a look at how to customize it and make it look better.

默认的年龄验证屏幕看起来不太好。 让我们看一下如何自定义它并使它看起来更好。

自定义年龄验证屏幕和消息 (Customizing Age Verification Screen and Message)

The Age Gate plugin allows you to easily customize the appearance of the age verification screen and even include your own message.

使用Age Gate插件,您可以轻松自定义年龄验证屏幕的外观,甚至可以包含您自己的消息。

First, click on the ‘Messaging’ tab on the plugin’s settings page. From here, you can change the age verification message. You can provide a title, description, terms and conditions, privacy policy, and any other information you want to display.

首先,点击插件设置页面上的“消息传递”标签。 在这里,您可以更改年龄验证消息。 您可以提供标题,描述,条款和条件, 隐私政策以及您要显示的任何其他信息。

Change age verification messaging

Don’t forget to click on the save changes button to store your settings.

不要忘记单击“保存更改”按钮来存储您的设置。

Next, you need to switch to the ‘Appearance’ tab on plugin’s settings page. From here, you can change background color, foreground color, background image, text color, and more.

接下来,您需要在插件的设置页面上切换到“外观”标签。 在这里,您可以更改背景颜色,前景色, 背景图像 ,文本颜色等。

Appearance settings for age verification screen

After changing the appearance settings, don’t forget to save your changes.

更改外观设置后,请不要忘记保存更改。

You can now visit your website in a new browser window using incognito mode to view the age verification screen in action.

现在,您可以使用隐身模式在新的浏览器窗口中访问您的网站,以查看年龄验证屏幕。

More colorful age verification screen
高级年龄验证设置 (Advanced Age Verification Settings)

If you are having trouble with your age verification screen page, then switch to the ‘Advanced’ tab on plugin’s settings page.

如果您在年龄验证屏幕页面上遇到问题,请切换至插件设置页面上的“高级”标签。

The most likely issue you may see are caused by conflicts with your WordPress caching plugin or the caching enabled by your WordPress hosting service.

您可能看到的最有可能的问题是由与WordPress缓存插件的冲突或WordPress托管服务启用的缓存引起的。

In that case, Age Gate comes with a JavaScript version that you can enable from the Advanced tab.

在这种情况下,Age Gate带有一个JavaScript版本,您可以从“高级”选项卡中启用它。

Advanced age gate settings

You can also enable other advanced settings from this page like Gutenberg support, adding custom CSS rules, and enabling anonymous age verification.

您还可以从此页面启用其他高级设置,例如Gutenberg支持 ,添加自定义CSS规则以及启用匿名年龄验证。

设置特定帖子的年龄验证屏幕 (Setting Age Verification Screen for Specific Posts)

If you chose ‘Varied Ages’ or ‘Selected Content’ options in the plugin’s settings page, then you can enable age verification for individual posts and pages.

如果您在插件的设置页面中选择了“不同年龄”或“所选内容”选项,则可以为各个帖子和页面启用年龄验证。

Simply edit the post or page, and you will see the age restriction options under the publish meta box.

只需编辑帖子或页面,您将在发布元框下看到年龄限制选项。

Age verification options for posts and pages

If you run an online store, then you can also use this option for specific products on your site.

如果您经营在线商店 ,那么您也可以将此选项用于站点上的特定产品。

We hope this article helped you learn how to add age verification in WordPress. You may also want to see our complete WordPress security guide to keep your site safe and secure.

我们希望本文能帮助您学习如何在WordPress中添加年龄验证。 您可能还希望查看我们完整的WordPress安全指南,以确保您的网站安全。

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

如果您喜欢这篇文章,请订阅我们的YouTube频道 WordPress视频教程。 您也可以在TwitterFacebook上找到我们。

翻译自: https://www.wpbeginner.com/plugins/how-to-add-age-verification-in-wordpress/

wordpress滑动验证

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值