• hauxton68

    (@hauxton68gmailcom)


    I’ve googled and googled and I’m googled out on this one.

    I want to be able to allow a user to switch off/on a background image and this state to be remembered so that what ever link they click the parameter will be passed. I can then check it in the header and do what ever needs doing.

    I know a fair bit of php but struggling with WP since I cannot encode every link with the variable so it needs to be hooked or filtered in some way I cannot work out.

    I don’t want to use cookies and I don’t want to use a bloated theme switcher – I just need to toggle a background image.

    If theres an easier way to do this I’m all ears.

    Anyone got any ideas?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Can you use jQuery’s get method?

    Thread Starter hauxton68

    (@hauxton68gmailcom)

    I that it needs to register a parameter, and then know to pass that parameter for ever more once the page has been loaded with that param in. I just cannot figure out the manual on how to do that … anyone any ideas?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘pass variable via url param on ever page request’ is closed to new replies.