当前位置:网站首页>How to add cookie pop-up window in WordPress website (without plug-in)
How to add cookie pop-up window in WordPress website (without plug-in)
2022-06-11 02:38:00 【Know blog】

How to be in WordPress Add to site Cookie Pop-up window
If you are using WordPress Station building Users of , Then it's possible that your website is already using Cookie To collect visitor data , If you don't show any consent on the website Cookie The notice of , You may be fined heavily or you may have to deal with serious problems .

Don't worry about . By displaying Cookie Consent notice can easily avoid problems , And it's easy to set them up . In this article , Know blog To give you a detailed description of how the inapplicable plug-ins WordPress Add to site Cookie Pop-up window .
In short ,Cookie Is the file that your website stores in the visitor's browser , The following are used throughout the network Cookie Some common examples of :
- Store login credentials , So that users don't have to re-enter them every time they visit your website
- Remember visitors Browse recently Specific pages that have been ( That is, on the e-commerce website “ Recent products ”)
- Pay attention to specific User behavior , For example, when they last visited your website
Cookie Everywhere on the Internet , even to the extent that Google Analytics Also used Cookie To track visitors and collect their data , For example, device type 、 Visitor location 、 Operating system, etc . You may think these Cookie It's harmless , But one fact cannot be forgotten , You collect data from visitors without asking for the user's consent , This is the introduction of Cookie Reasons for agreeing to the notice .
Not applicable to plug-ins WordPress Website add Cookie notice
towards WordPress Add plug-ins to the website May slow down . therefore , If possible , It's best to limit plug-in installation and manually adjust everything . To display the WordPress cookie notice , Please follow the simple steps below :
1、 By visiting WebsitePolicies Generate cookie Notification code . Go to the configuration wizard section and adjust it Location 、 Layout 、 Color and its custom text To personalize cookie Notification template .

2、 You can use “Click to preview Click preview ” Option to preview the template you are creating .
3、 After completion , Click on “Copy code”. Copy WebsitePolicies Medium WordPress cookie Notification code .

4、 Log in to your WordPress instrument panel And navigate to the “ appearance ”->“ Theme Editor ”. Find what you use Subtheme , find header.php file ( If not , You can copy the theme header.php To subtopics ).
5、 Open the file and paste the code into <head> Under the mark .

6、 Click update file to save the changes . If you want to check whether your settings are valid , Just visit your website . Make sure your cookie The notification is displayed and working properly .
Be careful :Cookie The generator website will ask you to link to your own cookie/ Privacy policy . If you have not , Can be generated for free .
The above is not using plug-ins in WordPress Add to site Cookie Pop-up window , Now? , You have learned how to paste the generated code to display WordPress Cookie notice .Cookie It is one of many ways that modern websites can provide their users with a better experience , Use WordPress CMS Content management system , Personalize your website for each visitor .
recommend : What is? WordPress?
recommend : How to be in WordPress Add free online chat to the website -Chaty Plug in tutorial
Know blog » How to be in WordPress Add to site Cookie Pop-up window ( No plug-ins )
Reprint please keep the link :https://www.pythonthree.com/display-wordpress-cookie-notice-without-plugin/
边栏推荐
- List 过滤、排序、校验等处理方法
- Everything实现快速搜索的原理
- Les produits financiers de l'assurance - rente peuvent - ils être composés? Quel est le taux d'intérêt?
- Unity animator rewind
- Colab reported an error: importerror: cannot import name '_ check_ savefig_ extra_ args‘ from ‘matplotlib. backend_ bases‘
- Istio installation and use
- Write my Ini configuration file error
- [untitled]
- How to read PMBOK guide in 3 steps (experience + data sharing)
- SQL | external connection
猜你喜欢

Metal organic framework materials (fe-mil-53, mg-mof-74, ti-kumof-1, fe-mil-100, fe-mil-101) supported on isoflurane / methotrexate / doxorubicin (DOX) / paclitaxel / ibuprofen / camptothecin

【189. 轮转数组】

What can the enterprise exhibition hall design bring to the enterprise?

当逻辑删除遇上唯一索引,遇到的问题和解决方案?

【新晋开源项目】动态配置化任务编排框架 Gobrs-Async 加入Dromara开源社区

Technology sharing | quick intercom, global intercom

深度学习基础篇【4】从0开始搭建EasyOCR并进行简单文字识别

逃离大城市的年轻人:扛住了房价和压力,没扛住流行病

軟件測試英語常見詞匯

MOFs, metal organic framework materials of folic acid ligands, are loaded with small molecule drugs such as 5-fluorouracil, sidabelamine, taxol, doxorubicin, daunorubicin, ibuprofen, camptothecin, cur
随机推荐
【AI周报】AI与冷冻电镜揭示「原子级」NPC结构;清华、商汤提出「SIM」方法兼顾语义对齐与空间分辨能力
【面试题 17.04. 消失的数字】
【189. 轮转数组】
Add SQL formatter to vscode to format SQL
剑指 Offer II 079. 所有子集
Write my Ini configuration file error
P4338 [zjoi2018] history (tree section) (violence)
Navicat premium 15 tool is automatically deleted by anti-virus protection software solution
Byte beating client R & D Intern Tiktok side
Multilevel mesoporous organometallic framework material zif-8 loaded with lactic acid oxidase (LOD) / ferric oxide (Fe304) / doxorubicin / insulin /cas9 protein / metronidazole / emodin methyl ether
Jetpack Compose Scaffold和TopAppBar(顶部导航)
[implementation of bubble sorting]
Why is the trend chart of precious metal silver strong?
年金保险理财产品可以复利吗?利率是多少?
String operation methods: replace, delete and split strings
Unity3d detects that the object is not within the range of the camera
helm 部署traefik ingress
Kotlin apply方法
[parallel and distributed systems] cache learning
环糊精金属有机骨架(β-CD-MOF)装载二巯丁二酸/大黄素/槲皮素/三氯蔗糖/二氟尼柳/奥美拉唑(OME)