Is there a way to capture a variable in a page and pass it to the header?

End goal is to have it so that the user can upload a different page logo for each page they create and when a visitor comes to a page it switches the logo depending on the page visited.

I was trying to write some logic so that the header would pull in the logo that was assigned in each page. But, I cannot figure out how to pass the assigned variable to the header from the page.

Or is there a better way to do this?

Thanks all,

I couldn’t figure out an easy solution without using JS.

So, I ended up creating a script inside the page and updating the logo from within that script. Not sure if that will help anyone else or not.