because this is going to be on every page is there a tidy way
Not a good question.
Explain the problem and the desired result in an exhaustive manner.
This workflow is going to be on every page on this 50 page website is there a better why to do this so when I add workflow for other things on the page it won’t get mixed up
“Reusables” is the approach most people take for this. Many threads about this - for example
and of course the manual …