# Why Use a Child Theme?

A **child theme** is a safe way to **customize your WordPress theme** without affecting the original (parent) theme. Here’s why it’s useful:

#### 🎯 Key Benefits:

1. **Safe Theme Updates**: Your changes won’t be lost when the parent theme is updated.
2. **Easy Customization**: Edit only what you need (like CSS, templates, or functions).
3. **Clean Code Separation**: Keeps your edits organized and separate from original files.

***

### 🛠️ How to Use a Child Theme (Step-by-Step)

#### 1. **Install the Child Theme**

If you already have a child theme ZIP file:

* Go to **Appearance > Themes > Add New > Upload Theme**
* Upload the child theme `.zip` file
* Click **Install** and then **Activate**

> If you don’t have one, I can create a child theme for your current theme — just tell me the name.

### When & Why to Use

| Use Child Theme When                            | Avoid If                                                  |
| ----------------------------------------------- | --------------------------------------------------------- |
| You want to customize layout, PHP, or functions | You’re only making 1-2 CSS changes                        |
| You plan future updates to the parent theme     | You don’t plan to modify code                             |
| You want organized, reversible edits            | You prefer using the Customizer or plugin-based solutions |

#### **Keep the Parent Theme Installed**

Do **not delete the parent theme** — the child theme depends on it.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://buddhathemes-test.gitbook.io/ogie/theme-faq/why-use-a-child-theme.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
