If you find this tutorial to be helpful and of use, consider buying Sniffle Valve a coffee
For help with the content presented in this tutorial, book a one-on-one online training session
UPDATE: 29 JULY 2017
At the request of one of the commenters, I have added the code to use four different headers, one for each of four specific pages.
In the code examples, I have the 4 pages: sample-page, text-flow, two-buttons, and nested-sections. Note that the preceding are the slugs for these pages. You will also need to replace the IDs with your own. The first four items are for the specific pages while the last item is what will appear on all the other pages.
This video shows you how to easily switch the site header depending upon which page is being displayed.
It requires the following plugins:
GeneratePress Premium: https://generatepress.com/premium
AnyWhere Elementor: https://wordpress.org/plugins/anywhere-elementor
You will also need this PHP code to past into the Before Header Content hook location within GP Hooks, which is a part of the GP Premium plugin.
Individual posts may also be targeted with this method.
Note that you will also have to adjust the id=xxx to match your own id values as well as the names of the pages or posts.