Recent searches


No recent searches

Nick Sturrock's Avatar

Nick Sturrock

Joined May 13, 2021

·

Last activity Oct 16, 2021

Following

0

Followers

0

Total activity

1

Votes

0

Subscriptions

0

ACTIVITY OVERVIEW

Latest activity by Nick Sturrock

Nick Sturrock commented,

CommentCustomer 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';
}
});

View comment · Posted Mar 24, 2021 · Nick Sturrock

0

Followers

3

Votes

0

Comments