Sometimes, you may want to customize a Discourse theme but find that there’s no “Custom code” section with an “Edit code” button available. This often happens with remote themes (themes installed from an external source) and the preinstalled themes (Horizon & Foundation).
You can find the full guide here: Customizing themes without an Edit code button - Documentation - Disco-Docs