How to create a copy of the Foundation theme?

AI-generated summary

rlauriston asked how to copy the Foundation theme to customize it for adding ad codes. merefield suggested that copying may not be necessary, recommending instead to create a Theme Component and add it to the existing theme. awesomerobot clarified that “Foundation” is actually the base style set for all Discourse themes rather than a standalone theme, and advised using plugin outlets for adding content instead of editing templates, providing a link to further guidance on using plugin outlet connectors.

How can I create a copy of the Foundation theme so I can customize it to add ad-related codes to the header, body, and footer? Or is that the wrong approach?

You may not need to.

Just create a Theme Component and add that to the Theme.

To expand on that a little more, “Foundation” isn’t technically a theme, it’s all the default styles Discourse comes with. Every Discourse theme is built on top of Foundation as a base.

If you’re looking to add content to Discourse, you want to look for plugin outlets rather than any sort of template edit/override… there’s more guidance here Using Plugin Outlet Connectors from a Theme or Plugin