I am creating my first theme using FSE and Pinegrow (both new to me). I want to create a template that has the header and footer in, so this can be used for all pages. I will need to create new templates, so can add the header and footer again to those. I have followed the tutorials and actually created the header and footer as editable blocks, so they can be added to any page.
But of course i dont want to add them to every page by hand, that would be silly!
So this is where I get lost. I thought I could add a page template and add the header and footer blocks through the wordpress admin a bit like this:
- In Pinegrow use the template index.html
- In Pinegrow under the Wordpress options choose Export as = page.php (this should be the standard tempate used for all pages by default. Should it be called page.php or index.php?)
- Post template name = not sure what to put here?
- This template has only a main loop in the body.
5 Save and export so it creates page.php - Go into wordpress, edit the page.php template.
- In this template editor add the header and footer and change the options available such as footer links and titles.
- Save page template.
- Create any new page and it will use this page by default with the header and footer (un editable unless go into the template editor)
- Add more blocks which will appear in the content loop area.
However I am being told, no i need to create the header as a html file in theme/parts and use it from there? I am so lost and cant find any tutorials on doing this. All the pinegrow tutorials I have watched exports them as editable blocks, and then adds them to individual pages as needed.