Skip to content

The Child Theme

Your site runs on Pegasus Child, a child theme that sits on top of the Pegasus parent theme.

The parent theme (Pegasus) gets updates. If your site’s custom code were added to the parent theme directly, the next update would wipe it out. The child theme keeps your site’s customizations separate, so the parent theme can be updated safely.

To change the HTML or PHP of part of the theme, a developer copies that file into the child theme and edits the copy. For example, to change the Header One layout:

  1. Copy the code from header-one.php in the main Pegasus theme.
  2. Create a templates folder in the child theme (if it isn’t there already) and create header-one.php in it.
  3. Paste the code into the new file.
  4. Make the changes there. If the parent theme’s version of the file changes in a future update, repeat these steps.
  • ✅ Keep Pegasus Child active under Appearance → Themes.
  • ⛔ Don’t switch to the parent Pegasus theme or another theme. Your site’s customizations would disappear from the live site.
  • ⛔ Don’t edit theme files in Appearance → Theme File Editor. See Plugins and Updates.
  • 💬 Need a layout change that the options panel can’t do? Ask us. That’s a child-theme change.

Developers: the child theme loads the parent theme’s stylesheet plus its own js/pegasus-custom.js, and its style.css declares Template: pegasus. The repo is Visionquest-Development/pegasus-child.