Changing the “Meet the Team” text on the About page

Here is the code you need to add to the Footer of your site, using the source code editing feature, to change the Meet the Team text on the About Page. The source code editor button looks like this <> and gives you access to add new code. You do not add this directly into the Footer itself, it has to go only in the source code section.

You replace the “Your custom text” with whatever you want it to say but keep both ” ” before and after.

Anna and Anna Modern Script

<script>
var agentsHeading = document.querySelector('#agents h2');
var customMeetText = "Your custom text"; // Replace with your custom text
if (agentsHeading) {
  agentsHeading.innerHTML = customMeetText;
}
</script>

Miranda Script

<script>
    var agentsHeading = document.querySelectorAll('h2');
    var aboutPageURL = '/about/';
    var customMeetText = "Your custom text"; // Replace with your custom text
    if (window.location.pathname == aboutPageURL) {
        for (i = 0; i < agentsHeading.length; ++i) {
            if (agentsHeading[i].innerHTML === 'Meet the Team') {
                agentsHeading[i].innerHTML = customMeetText;
            }
        }
    }
</script>

Leave a Reply