Contents

Home › Articles

How to Create a Child Theme in Invision Community

By Alex Rivera · Published · 3 minutes read

Folder hierarchy diagram illustrating parent and child theme file structure
Folder hierarchy diagram illustrating parent and child theme file structure · Foto: Juergen_Sieber / Pixabay

Invision Community doesn't ship a formal "child theme" declaration like some CMS platforms do, but the same idea exists through theme inheritance: a copy of a theme that carries your customizations while the original stays untouched as a fallback. Getting this structure right is the difference between a ten-minute upgrade and a weekend of re-applying edits.

This guide covers what inheritance actually does in the Invision theme system, how to build a safe parent-child pair step by step, and the habits that keep future updates painless.

What Theme Inheritance Means in Invision Community

In Invision Community, every theme is built on top of a default set of templates and CSS. When you create a new theme from an existing one, the child captures the current state of templates, CSS, and settings at that moment, but it remains a full copy rather than a live link. That distinction matters: editing the parent later does not change the child, so the child is your safe workspace while the parent is your reference point.

Think of it as version pinning rather than live inheritance. The practical benefit is the same as a child theme elsewhere: you never edit the stock theme, so a failed experiment can be reverted without touching anything else. Keep one clean, unmodified theme installed as your anchor and build all custom work on copies of it.

  • Never customize the default theme directly
  • Keep one untouched theme as a clean reference
  • Treat each child as a snapshot, not a live link
  • Name themes by version and date for easy rollback

Step-by-Step: Building a Safe Parent and Child Pair

Start in the AdminCP under Appearance, then Themes. Create a duplicate of the default theme and name it clearly, for example "Base 4.7 - untouched". Do not edit it. Next, duplicate that base theme again and name the copy something like "Live Theme 2024-06". All design work happens in the second theme, which is your child.

Before making changes, open the theme editor and confirm the parent reference is what you expect. Then assign the child as the active theme on a staging copy first, or limit it to one user group on production. If something breaks, you can switch back to the base theme in two clicks rather than hunting through templates. For recovery steps after a bad edit, see Troubleshooting Common Invision Theme Installation Errors.

  • Duplicate, rename, then duplicate again
  • Test on staging or a single member group
  • Record which theme is active where
  • Export the child after each milestone
Typical effort and risk by customization approach
ApproachSetup timeUpgrade effortRollback speedBest for
Edit default theme directlyMinutesHigh, changes may be overwrittenSlow, manual re-editQuick one-off tweaks
Single custom theme (no base)30-60 minutesMedium, no clean referenceMedium, needs exportSmall sites, few edits
Parent plus child pair1-2 hoursLow, documented re-applyFast, switch active themeMost production sites
Standalone fully custom build1-3 weeksHigh but plannedFast with versioned exportsHeavy template restructuring

Editing Templates and CSS Without Breaking Updates

Invision upgrades occasionally change core templates. If you have edited a template in your child theme, the platform may flag a conflict after the update because your version no longer matches the upstream copy. Keep a changelog of every template you touch and the exact lines changed; a simple text file in your repo is enough. When a conflict appears, compare your edits against the new default rather than blindly accepting either side.

Prefer CSS overrides in the theme's custom CSS field where possible, since CSS conflicts are easier to diff and revert than template logic changes. For structural changes, edit copies of templates rather than core files, and keep variable names and data attributes intact so plugins that hook into them keep working.

  • Log every template edit with date and line range
  • Use custom CSS before template logic
  • Diff conflicts manually against the new default
  • Avoid renaming data attributes and template variables

Keeping Parent and Child in Sync Across Upgrades

Because the child is a snapshot, upgrades to the platform do not automatically flow into it. The reliable routine is to create a fresh duplicate of the updated default theme, then re-apply your customizations from a documented list. This sounds heavier than it is: most sites touch fewer than a dozen templates and a few hundred lines of CSS, so a re-apply session typically takes one to three hours for a moderate theme.

If your customization is large, plan a full rebuild on major version jumps and a quick re-apply on minor ones. Store exports of the child theme alongside your changelog, and keep the previous working theme installed but disabled so rollback is immediate. A structured routine is detailed in How to Backup and Restore Invision Theme Customizations.

  • Rebuild on major versions, re-apply on minor ones
  • Keep the previous theme installed but disabled
  • Archive theme exports with version numbers
  • Schedule re-apply time before announcing upgrades

When a Child Theme Is the Wrong Choice

If your changes are purely settings-based, color variables, logo swaps, and font choices, you may not need a full child at all. Many sites run on one lightly edited theme with a handful of CSS rules, and the overhead of maintaining a parent-child pair is not worth it. The break-even point tends to be around a dozen or more template edits, or any change you would struggle to reproduce from memory.

Custom builds with heavy template restructuring also make sense as a standalone theme rather than a child, because the customization is the theme. Weigh the trade-offs carefully; cost and effort comparisons are covered in How Much Does a Custom Invision Community Theme Cost? and Premade vs Custom Invision Themes: Which Should You Choose?.

  • Pure settings changes rarely need a child
  • A dozen or more template edits justifies the structure
  • Heavily restructured builds can stand alone
  • Count the hours you would need to rebuild from scratch
  • Invision has no formal child theme flag; you get the same protection by duplicating a clean base and customizing the copy.
  • Keep one untouched theme installed as a reference and never edit it.
  • Log every template edit so upgrade conflicts can be resolved by comparison rather than guesswork.
  • Pure settings changes rarely justify a parent-child structure; a dozen or more template edits usually does.
Alex Rivera · Theme Developer
Alex has spent years building and customizing Invision Community themes for forums of all sizes. He focuses on clean code, responsive design, and performance optimization. His articles aim to make theme development accessible to beginners.

Related

↑