最近搜索
没有最近搜索

Nick Sturrock
已加入2021年5月13日
·
最后活动2021年10月16日
关注
0
关注者
0
活动总数
1
投票
0
订阅
0
活动概览
标记
文章
帖子
社区评论
文章评论
活动概览
的最新活动 Nick Sturrock
Nick Sturrock 进行了评论,
评论Customer portal
I found the simplest approach to change all instances of elements with text 'Submit a request' (in this case hyperlinks, page titles and breadcrumbs) in the Copenhagen theme was using the following Javascript, placed at the top of the script.js function inside the document.addEventListener('DOMContentLoaded', function():
// translate 'submit a request' to 'contact us'
Array.prototype.forEach.call(document.querySelectorAll('a,h1,li'), function(a) {
if (a.textContent.includes("Submit a request")) {
a.textContent = 'Contact Us';
}
});
查看评论 · 已于 2021年3月24日 发布 · Nick Sturrock
0
关注者
3
投票
0
评论