I am trying to change some text using jQuery for my WordPress website. When I test this code inside the console then it works fine. However when I use this code in my custom