No, it’s different problem. When I editing a page (that attached to a hero single template) I can see only a blank page. You can see the header is display in editor side but the single page hero template is not. Sooo, the first step I have to add 200px top margin to the first section when I start the page design. And after I finish it I have to delete delete the margin because I can see anything from header.
I think (like GP) it would be have to work, display header template and display heron template too in editor mode too.
i made a single page hero template, and in condition i set it every singe page.
In frontend works good!
But when i edit a single page in bricks, not render into editor the single page hero template.
I think the problem is the sticki header option, because the page content ha below from it. (Like layers in photoshop, or Z index in web. )
Can you see the frontend screenshot? Yes. The hero section (bricks template) is there. Everything is good. (margins, padding, conditions, everything)
Can you see the page editor screenshot? (it is not the hero template. It is a PAGE in editor view)
Sooo. I think the normaly opreation (like elementor, generapress and other) that for those pages where the template condition is set, it should also be visible in editor mode.
Why? Because you can see, since I use a sticky header, all content (only in editor mode) jump under the header. This way, the header covers everything at its own height!
In other words, when I edit the page, I need to add a 200px margin to the first section so that I can see what I’m doing. Before saving, however, I have to delete the margin value every time so that it appears well on the public page as well.
But if the pages set in the template conditions were already displayed in editor mode, there would be no such problem!
Hi Patrik,
New try after looking at your template:
Your hero section is part of the single-page template and will not be displayed when editing a single page. If you include the hero section in your header template, you will see it even while editing your page because the header and footer are always showing.
So actually, this is not a bug. While editing the page, you’re editing the inner part of the “post content” element you’re using inside your template. The same applies independently of Bricks: When you write a post in Gutenberg (no matter which WordPress template you’re using), you only see and edit the content - not the surrounding layout.
Thank you for your work.
I understand that this is not actually a bug, but (in my opinion) a shortcoming. Then let’s look at it from the other side. Would it be possible to resolve in the next version (similarly in the case of the header and footer) that the conditional template parts are also called during editing?
Since all of website has only one header and several types of hero sections, it is not optimal and not feasible to merge the two things. In this case, I would have to integrate the header again and again for each individual hero.
No, but that’s certainly a topic we’ll look at again when we get a chance. There is already a feature request on the Idea Board that makes the template system more flexible: https://bricksbuilder.io/ideas/#4534