SOLVED: Shortcode Header Template not working

Bricks Version: 1.5 Beta

Shortcode from a header template not working.

Hi Daney,
Thank you very much for your report!

Can you clarify what isn’t working? The content itself, the styles?
If it’s about the styles: this is a known issue that will be fixed in the next version.

You can try to switch the styles method in Bricks > Settings > Performance and see if that resolves the issue for now.

Best regards,
timmse

This is Header-1 template simple header with section → logo → and menu
If i copy paste the shortcode in a post you see nothing in the frontend. See pics above.

If i make a page and edit with bricks i see this: Your selected template is empty.

This is correct because the template type is probably “header”. This is inserted automatically and cannot be used multiple times. It doesn’t have to be because it is already there, as you can see in the second screenshot. If you change the type to “Section”, I assume it works as expected. But then there is no header template anymore ;D

Ok I get it. You may mark this topic as solved.

One more how-to question is it possible to get the templates of bricks (header, section, footer, single, archive etc) in a query loop. Example: i’m making a page with query loop so i can query all of my header templates.

No, the templates aren’t publicly queryable (so they are not selectable within the loop). But if you save each of your templates as a section template, create a post for each template and insert it by using the shortcode or template element, you can query the posts, of course.

thanks for your reply I know enough.

How do you achieve PHP controlled dynamic headers, where the header is switched based on a URL attribute?

I think the way you do templates in Bricks is too opinionated and I’m not sure why. Does it matter what type of template it is or how many times it appears on the page, you have to give your users more credit. Elementor has a much more intuitive templating system. Wherever you place a template shortcode it displays that template on the page, as simple as that, a single header can have multiple nested templates via shortcodes which are programatically determined via custom PHP functions.

Trying to do that in Bricks is a hair-pulling nightmare