Skip to main content
This section assumes you can edit PHP and use FTP or a file manager. If you are not editing files on a server, you probably do not need a child theme yet.

Do I need one?

  • Add custom PHP — functions, filters, hooks
  • Add custom CSS or JavaScript
  • Change how a template renders
  • Add a page template
  • Register a custom sidebar or post type
  • Ship a customised theme to a client
  • Change theme.json palette or type values
  • Change colors, fonts, layout, or footer content → the Customizer
  • Add menu icons → the Customizer
  • Change logo or favicon → Site Identity
  • Add widgets → Appearance → Widgets
  • Add a one-off CSS rule → Appearance → Customize → Additional CSS
Never edit files in wp-content/themes/vara-saas/ directly. They are overwritten on every theme update, without warning. Anything you change there will be lost.

Setting one up

1

Create the folder

wp-content/themes/vara-saas-child/
2

Create style.css

With the header below. Nothing else in this file is required.
3

Create functions.php

Optional but conventional. Use it for any PHP you need.
4

Activate it

Appearance → Themes. Vara SaaS Child appears alongside the parent.

style.css

Template: vara-saas is the critical line. Without it, WordPress treats this as a standalone theme with no parent, and your site breaks immediately. Spell the parent theme’s folder name exactly — vara-saas, not Vara SaaS.

functions.php

defined( 'ABSPATH' ) || exit; is not optional. It stops the file running if it is requested directly over HTTP. Every file in a WordPress theme should start with it.
The third argument in wp_enqueue_style declares a dependency on the parent’s stylesheet, so your CSS always loads after it.

Overriding template files

Copy the parent file to your child theme at the same relative path and edit your copy.
WordPress loads the child version and ignores the parent one. See Template files for what each template renders.
Templates override completely — there is no merge. Your copy must include everything the original had, or the missing pieces disappear. If you only need a small change, prefer a filter over a full template override.

Prefer filters where they exist

The theme exposes filters for most of what you might want to change.
Full reference: Hooks and filters.
Defining color.palette in your child theme replaces the parent’s palette rather than appending to it. List every color you want, not just the new ones.

Enqueueing assets properly

Common mistakes

Add code in small increments and test after each one. The single most common cause of a child theme taking a site down is a large block of code added in one edit with a typo somewhere in the middle.

Shipping to a client

A short README covering the Customizer setup and any custom templates the client should know about.

Hooks and filters

Prefer these over template overrides where they exist.

Template files

What to copy when you do need to override.