From bc6fe4242d7b532b84b232e8bc905a5d374d289c Mon Sep 17 00:00:00 2001 From: Leif Singer Date: Wed, 29 Nov 2023 12:49:52 +0100 Subject: [PATCH] code formatting tweaks --- docs/getting-started/set-up-a-child-theme.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/getting-started/set-up-a-child-theme.md b/docs/getting-started/set-up-a-child-theme.md index 9ac98f11c1a..c5f7040a477 100644 --- a/docs/getting-started/set-up-a-child-theme.md +++ b/docs/getting-started/set-up-a-child-theme.md @@ -76,7 +76,7 @@ Let’s do an example together where we change the color of the site title. Add ```css .site-branding h1 a { -color: red; + color: red; } ``` @@ -98,9 +98,7 @@ The same goes for WooCommerce templates. If you create a new folder in your chil The `functions.php` in your child theme is loaded **before** the parent theme’s `functions.php`. If a function in the parent theme is **pluggable**, it allows you to copy a function from the parent theme into the child theme’s `functions.php` and have it replace the one in your parent theme. The only requirement is that the parent theme’s function is **pluggable**, which basically means it is wrapped in a conditional if statement e.g: ```php -if -(!function_exists("parent_function_name")) -{ +if ( ! function_exists( "parent_function_name" ) ) { parent_function_name() { ... }