So in WordPress I have a static link in the footer that appears in all pages and I would like the URL in the link to change when but only when it’s in a certain page. So it’s like

All pages – footer link goes to href="https://website-A"

Except when on page ‘x'(or lets say the About Page) then footer link goes to href="https://website-B"

Is there a way to do that in jQuery or JS?


Read more here: Change link URL to a different link depending on the page


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: