Hi @scalabria ,
Thank you for sharing your custom code.
Unfortunately, you cannot reuse this module in email templates as is. I assume you are also using Bootstrap or another framework for the grid system. While this may function properly in your theme and on your CMS pages, it won’t translate well to email templates.
Email templates have significant limitations when it comes to styling. Drag-and-drop email modules do not support ‘require_css’ or external CSS (and JavaScript) files. Instead, you must utilize inline styles (e.g., ‘style=“”’).
Additionally, in email templates, it’s advisable to use tables to position items next to each other, similar to using ‘col’ classes.
I suggest rebuilding this section in the drag-and-drop email editor and then inspecting the code using development tools to copy it into your new module. You should also create this module for emails only.
Regards, Gracjan