Archived topic
restoring global header element issue#783348
5 replies · Started by Frank on May 12, 2021
The predesigned site was Wordsmith.
Hi there,
are you using the block editor - as all sites were updated in GPP 2.0 use a block element instead of the older Header Elements - if you are then you can do this:
Hi there,
in the latest update most sites were updated to use the Block Element.
So to recreate the global header you would do the following:
1. Create a new Block Element.
2. In the Element options under Element Type -select: Page hero.
3. From the 3 dot menu in the top toolbar select Code Editor and paste this code into the block editor:
<!-- wp:generateblocks/container {"uniqueId":"ac12ed75","paddingTop":"140","paddingRight":"20","paddingBottom":"140","paddingLeft":"20","backgroundColor":"#6a8693","bgImage":{"id":2090,"image":{"url":"https://gpsites.co/wordsmith/wp-content/uploads/sites/14/camera-593324.jpg","height":1200,"width":1800,"orientation":"landscape"}},"bgOptions":{"selector":"pseudo-element","opacity":0.3,"overlay":false,"position":"center center","size":"cover","repeat":"no-repeat","attachment":""},"isDynamic":true} -->
<!-- wp:generateblocks/headline {"uniqueId":"8f61922e","element":"h1","alignment":"center","textColor":"#ffffff","showAdvancedTypography":true,"fontWeight":"700","fontSize":34,"lineHeight":1.4,"gpDynamicTextType":"title","gpDynamicTextReplace":"Hello World"} -->
<h1 class="gb-headline gb-headline-8f61922e gb-headline-text">Hello World</h1>
<!-- /wp:generateblocks/headline -->
<!-- /wp:generateblocks/container -->
Then switch back to Visual editor.
4. Select the Container Block in the editor, and change the settings sidebar Background - select an image from your media library.
5. Set your Display Rules to Pages > All Pages.
Let me know
That sounds complicated to me and I’m not certain that will cover all scenarios.
Is there a way to export all of my content and settings and then import them into a new instance of Wordsmith?
I would use a Staging server, check with your host as most of them offer this service. Which simply create a copy of your site on a subdomain. Then remove any content that may have been imported from the last site install. Then re-install the site from the site library - this will keep all your existing content. Make the changes you need eg. delete pages that are not required. Once you're happy your host can PUSH the staging server to the live domain.
To be certain, I began a completely fresh instance of a wp staging site and then imported the premade theme. I then manually recreated every setting and all content. I couldn't afford to be further confused.
Thank you for trying to help.
Glad to hear you got it resolved!