SOLVED: Page editing with custom single page template - not display the template in page editor

Bricks Version: 1.5.1

Hi!
I made bricks template Hero section (page title with background) and after Wordpress content section.
Works great.

BUT
When i open a page, with bricks editor, not display the single page design, and cant populate it in back end editor.

Hi,
Thanks so much for your report!

Unfortunately, I can’t quite understand your problem.
Can you show me:

  1. The structure of your page template
  2. The conditions of your page template

Best regards,
timmse

1 Like
  • I made a blog archive template in Bricks
  • In section background i set up Dynamic Feature image
  • Set conditions to individual page. (Knowed issue the archive template, so that why set individual page and not archive)
  • After I gone to pages > Hirek Cikkek page (blog news page) and set up the feature image.
  • BUT, on frontent not showing the feature image, only the overlay color that i set up.




Yeah, that’s the problem you reported here: SOLVED: Bricks Blog Page Template doesnt show the featured image as background image

But what is this report about? Can someone help me out? :thinking:

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.

Hi @timmse !

Could you find a solution for this problem?

I try to explane other way.

  1. 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. :smiley: )

Frontent is good:

Back-end not. Not render the singe page hero TEMPLATE into to the page editor, so i cant see the first section from menu.

Hi,
It’s just about the spacing of the content to the top?

There is a setting for this in the Theme Styles (Content » Margin):

You can create individual Theme Styles and use a condition to apply the “content margin” theme style only to pages.

Does that solve your problem, or do I still not get it?

Best regards,
timmse

Timmse, please!

Not this is the problem!!!

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.

Best regards,
timmse

1 Like

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

Best regards,
timmse

1 Like