gpt4 book ai didi

php - 阻止 Google 翻译在网页上激活

转载 作者:行者123 更新时间:2023-12-03 09:07:27 25 4
gpt4 key购买 nike

我正在寻找一种解决方案来阻止 Google 翻译在我的 WordPress 网站上激活。有谁知道 PHPfunction 可以放置在主题 functions.php 上来阻止这种情况。

更喜欢可以放置在整个主题中的解决方案,而不是通过 single-page.php

Screenshot of Google Translate activating

感谢您的宝贵时间,也感谢您的帮助。

最佳答案

我已经找到了解决方案,而且相当简单。在我放置的主题 header.php

<meta name="google" content="notranslate"/>

这已阻止 Google 翻译激活。

感谢您的宝贵时间。

关于php - 阻止 Google 翻译在网页上激活,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45915276/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com