Suppose you want
- Rename “Contact” to another text
- Change the “Contact” URL to another URL
on One Page
#1. First, you need to find the “Contact” URL
In this example, we have the URL: /contact-us
#2. Use this code to Page Header Code Injection and Save
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script> <script> $(document).ready(function(){ $('header#header [href="/contact-us"]').html(function() { return $(this).html().replace("Contact", "New Contact"); }); $('header#header [href="/contact-us"]').attr('href','https://google.com') }); </script>
You will have this
Remember to adjust these values