Skip to content

Firmness documentation

Child themes

Browse the documentation

Child themes from 1.x

The 1.x template names, functions, hooks and settings are all still there, so a 1.x child theme keeps working.

  • A child theme with templates of its own stays on Classic. The Design choice is hidden, because those templates were written for the Classic markup.
  • A child theme with only style.css and functions.php follows the design you choose. If you switch to Modern, check its styles, because Modern uses its own frm- classes.

Any PHP file other than functions.php in the top folder of the child theme counts as a template.

A child theme for Modern

A child theme written for Modern can have templates and still use Modern. Tell Firmness with this filter in its functions.php:

add_filter( 'firmness_child_uses_classic_templates', '__return_false' );

When you activate a child theme, it takes on its parent’s design. Modern’s templates are in the modern/ folder of the theme, and they are the ones to copy from.