Customization

Child Themes

May 4, 2026 docsadmin 1 min read

When custom CSS isn’t enough, a child theme is the right tool. Here’s a minimal one for MyWiki.

A child theme inherits everything from MyWiki and lets you override individual files. Your customizations survive parent theme updates because they live in a separate folder.

Create the folder

Inside wp-content/themes/, create a folder called mywiki-child. Inside it, two files: style.css and functions.php.

Minimal style.css

/*
Theme Name: MyWiki Child
Template: mywiki
Version: 1.0.0
*/

/* your custom styles below */

The Template: line is what makes WordPress treat this as a child of MyWiki.

Minimal functions.php

<?php
add_action( 'wp_enqueue_scripts', function() {
    wp_enqueue_style( 'mywiki-style', get_template_directory_uri() . '/style.css' );
    wp_enqueue_style( 'mywiki-child-style',
        get_stylesheet_directory_uri() . '/style.css',
        array( 'mywiki-style' )
    );
} );

Activate it

In WordPress admin, go to Appearance u2192 Themes. You’ll see MyWiki Child alongside MyWiki. Activate the child.

Override a template

To customize a template (say, single.php), copy the file from the parent theme into your child’s folder. WordPress will use your version. Don’t edit the parent u2014 it’ll be overwritten on update.

If you’re activating MyWiki Pro, activate it BEFORE switching to the child theme. The Pro plugin attaches to whichever MyWiki theme is active.

Leave a comment