Archived topic
Applying GB local template to other pages with dynamic blocks problem
7 replies · Started by Alexander on April 16, 2021
Hi! I've made a page hero GenerateBlocks local template and would like to apply it to other pages but with dynamic background as featured image and H1 as page title and original icon https://paste.pics/C7TOP
When the local template is loaded in block element, all the controls are gone and I can't edit the blocks https://paste.pics/C7TOX
Doesn't it work the way I do and what is the best practice for that?
Hi there,
what happens if you create just a simple Local Template - eg. a container with a headline. Does that work correctly?
The local GB template looks ok and fully editable https://paste.pics/C7VK1
As soon as it's inserted in hero page block, the editor goes classic and blocks are gone https://paste.pics/C7VJ3 and it blows my mind :-)
I was wondering whether it was just that template - as it contains a shortcode.
If you try a simple template - no shortcode - then does that work ?
I deleted the rankmath brandcrumbs shortcode in the template and saved it.
It kind of started to function.
When inserted, the new template is loaded with the shortcode anyway, also the block structure is broken.
The original template structure https://paste.pics/C7WD5
The template structure when loaded from the template https://paste.pics/C7WDX
I need those two containers to apply different styles.
Is there any issues if you recreate the Block directly inside the Block Element ?
Everything works fine with a local template not containing a shortcode. I add it afterwards inside the block element.
We'll take a look into why thats happening and see if we can replicate the problem and improve it possible.
Thanks for letting us know - looks like you found the solution :)