Jun 4, 2021 10:17 AM
I created a child theme in Design Manager following the two steps listed here: https://developers.hubspot.com/docs/cms/building-blocks/themes/child-themes
In the child theme folder, I only see the json files. I don't see all the other files like modules and templates.
When I create a new page using the child theme, I can see the templates and the modules are available when I edit the page.
Anyone know a way to get all the files like modules and templates in the child theme folder in Design Manager so I can customize them?
Jun 4, 2021 3:23 PM
Jun 4, 2021 3:58 PM
So when you create a child theme, initially, everything is inherited from the parent. To make modifications, you will need to clone the module/ template and add it to the new child theme in the same path as the parent.
So, pretending you want to modify a slider module
If that module is in the following path in the parent theme:
the you would create a copy at this path
Does that make sense?
From the FAQs on the page you references, the 2nd and 3rd points are relevant
@marketplace/parent/theme/templates/about.htmlyou can create
/child/theme/templates/about.htmland make your edits to the new file. The new file will take effect instead of the inherited file. Note that this applies to your fields.json file as well as other files in the theme.
Jun 4, 2021 6:08 PM
Hi Dennis, thanks for getting back to me. Looks like I can't clone modules or templates since it's a marketplace theme. I'm guessing I could clone the theme and then move the updated modules I want into the child them?
Jun 7, 2021 7:08 AM
Hi @NLussier ,
Hope this helps!
If we were able to answer your query, kindly help the community by marking it as a solution.
Thanks and Regards.