We have a fairly large theme and site that we launched recently. There is a need to get a staging version of the site going for larger global tests. Such as we just implemented a header change, and would be nice to build up to a staging site, then send to client before sending live. We are setup with Github actions to deploy to main and have been looking into a seperate staging.yml to send to a Content Staged version of the website. Is this a common way of doing it or better to go with the child theme approach? Let me know what the normal course of action is here!
When implementing HubSpot’s content staging, there are several key considerations.
One major limitation is that global elements, such as headers and navigation, cannot be previewed in their entirety.
To mitigate, use the child theme’s preview mode in conjunction with staged pages for thorough testing. When publishing, adopt a batch approach, replacing live pages via content staging after final approval, while preserving original URLs and analytics.
This hybrid method accommodates multi-team workflows, allowing developers to leverage GitHub for code deployments and marketers to utilize HubSpot’s UI for content edits.
By combining child themes, GitHub Actions, and content staging, teams can achieve a balance between technical rigor and native HubSpot capabilities, avoiding the complexity of separate staging infrastructure.
Hope this helps - Happy to help further!! Thank you very much and have a great one! Warm regards
Hey @MWiggins it really depends on what works for you! To be honest normally I find creating a child theme the best approach as it allows you to build out edits within the UI options provided within the theme the same way a non-developer user would want to edit the theme. Most good themes should have a wealth of functionality to allow non-technical users to edit the theme, so allowing this to be all set up and allowing a user to see how to edit these is important for my customers, this is why I usually lean towards a child theme, but it’s really up to what works for you!
I know this has been solved but just to throw some other ideas, you could also create a sandbox account for development and staging and once everything is approved/reviewed then you deploy to the main account.
The child theme is probably the best solution for most cases but not the only available solution