Hello! I’m a solo developer that’s fairly new to HubSpot and I’m still learning how to develop themes and figuring out what’s the best practices/workflow to use HubSpot for my work.
I’ve created 2 different themes using the CMS React framework and it has been a great experience so far.
However I realised that I have common global modules that are exactly the same within the 2 different themes (eg. the header and footer). As such, it’s quite a repetitive experience to populate these modules on the 2 separate themes, which gets tedious when my team have to populate them with content for 8 different languages.
I would like to seek advice on how to make it easier to populate content in this scenario (i.e. if I were to create a new theme for my next project, the header and footer with content from all languages will be already pre-populated)
I have a few solutions in mind, but I don’t know how feasible these options are:
- Create a “master” theme that can be cloned (along with the modules) and modified using a “child” theme (currently not possible, as cloning or creating child theme of a theme in @projects throws me a generic error and I’m not sure why this happens)
- Maintain a single theme that will be used on all my websites (sounds like it will be very bloated and difficult to maintain over time)
- Access previously created modules by directing it to the path eg.
@projects/my-theme-name/theme/components/modules/header.tsx(not sure how, as my CMS React modules do not show up in the Design Manager when i search for it) - Create standalone global modules that isn’t tied to a theme so they can be used everywhere. (Not sure how to create with CMS React)
Will greatly appreciate any solutions or thoughts. CMS React solutions will be preferred!
Thank you!