Several Suggestions to Improve Work with Templates

After some time working with Bricks and it’s templates I’ve came accross several issues and complications using them, so I’d like to propose some improvements:

1. Better handling of tempales’ CSS

  • The CSS of the section templates is output in the footer instead of the head, causing singnificant FOUC
  • When the CSS is loaded vie external file, some of the rules are duplicated

2. Rendering of used templates during editing the other content

  • When the template is inserted via hook or is part of the single or archive template, it isn’t shown when you are editing the page content. Only header and footer do this. It makes using the templates quite complicated.
  • The conditions used in the templates are not taken into account, when editing the page the templte is used on. For example, I have 2 different blocks in the header, showing under different circumstances. But when editing a page using this header, both blocks are shown, not respecting the conditions. (Of course, on the front end everything works fine.)

Thanks for considering these improvements.

What if we could set loading location for template section? I think sometimes you may need to load css in footer but in some cases in the header. Ex. When creating section and using it in different templates css gets loaded too late or gets overrides. Not sure if it can get messy or it may be easy to implement what are your thoughts?