code formatting tweaks

This commit is contained in:
Leif Singer 2023-11-29 12:49:52 +01:00
parent 5da7ddea06
commit bc6fe4242d
1 changed files with 2 additions and 4 deletions

View File

@ -76,7 +76,7 @@ Lets 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 themes `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 themes `functions.php` and have it replace the one in your parent theme. The only requirement is that the parent themes 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() {
...
}