Change link URL to a different link depending on the page

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?

Thanks,

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

Leave a Reply

Your email address will not be published. Required fields are marked *