Buy me a coffee

Change Navigation Item text/url (One Page)

Suppose you want

  • Rename “Contact” to another text
  • Change the “Contact” URL to another URL

on One Page

Change Navigation Item Text Url 01 Min

#1. First, you need to find the “Contact” URL

Change Navigation Item Text Url 02 Min

In this example, we have the URL:  /contact-us

Change Navigation Item Text Url 03 Min

#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

Change Navigation Item Text Url 04 Min

Remember to adjust these values

Change Navigation Item Text Url 05 Min