Twig variable in themes to detect builder

There are a few similar requests in the forum:

Personally, I’d love to see a field on the email edit page (before the builder) for a user to define the preheader and that would get added to the email when it’s sent to the relay service.

I haven’t been able to figure out how to use the headers to build an email with annotations to appear in the Gmail promotions tab, but this seems like it would be related to work to make the preheader text easier to edit: Menganotasi email di tab Promosi  |  Gmail  |  Google for Developers

In the Acquia documentation for our email builder, we have code to copy/paste into an HTML block at the beginning of the email:

 <div style="display:none;font-size:1px;line-height:1px;max-height:0px;max-width:0px;opacity:0;overflow:hidden;mso-hide:all;font-family: 'Raleway',sans-serif;">This is preheader text</div>
                                                                                                                                            <!-- Visually Hidden Preheader Text : END -->

This should work in any builder - we didn’t make any changes between the legacy builder and the BEE builder (which is what Acquia uses, rather than GrapesJS)

Is this helpful for what you’re trying to do?

1 Like