Carry URL variable across the page

60 views Asked by At

Hy to Everyone, I want to carry my ?ref=*** URL variable through my menus in a WordPress site. This variable will be added by me manually for the URLs and given for the users. It would be good that if they navigate, the ref variable didn't get lost in a browser session. How could this be done? Thank you, I am looking forward to the answer! BR

1

There are 1 answers

0
Dean Whitehouse On

Maybe this will point in the right direction based on the comments.

Wordpress - Update ALL menu links in header with querystring value

Another solution which is less complex but also less advised is to use javascript to update all anchors on the page with the query string and value