October 17, 2023

How to Create a GeneratePress Child Theme

Play Video

Creating a GeneratePress child theme is a helpful step for anyone looking to customize their WordPress website without losing those changes during theme updates. In this tutorial, we’ll walk you through the process of setting up your own GeneratePress child theme.


Please make sure you have the following installed and activated:

Why Use a Child Theme?

A child theme is essentially a sub-theme that inherits all the features and functionalities from its parent themeā€”in this case, GeneratePress. It allows you to:

  • Safely add custom PHP code
  • Customize the appearance via CSS
  • Maintain your changes even after updating the parent theme

Downloading a Blank Child Theme

  1. Navigate to GeneratePress Child Theme Download and download the blank child theme.
  2. Save the downloaded zip file on your computer.

Installing the Child Theme

  1. Go to your WordPress dashboard.
  2. Navigate to Appearance > Themes.
  3. Click on Add New.
  4. Click on Upload Theme.
  5. Choose the downloaded zip file and click Install Now.
  6. Activate the newly installed child theme.

Customizing the Child Theme

Branding Your Child Theme

  1. Open the screenshot.png file in an image editor (e.g. Photoshop or Figma).
  2. Replace the default image with your brand logo and colors.
  3. Save the edited image.

Modifying the CSS File

  1. Open the style.css file in a text editor.
  2. Edit the theme header to reflect your information.
  3. Add any custom CSS rules you want, for example:
    /* Example: Changing the background color */
    body {
      background-color: orange;

Adding Custom PHP Code

  1. Open the functions.php file.
  2. Paste your custom PHP code:
    function custom_replace_howdy($wp_admin_bar) {
        $my_account = $wp_admin_bar->get_node('my-account');
        $new_title = str_replace('Howdy,', 'Hello,', $my_account->title);
            'id' => 'my-account',
            'title' => $new_title,
    add_filter('admin_bar_menu', 'custom_replace_howdy', 25);

    Source: The Admin Bar

Updating Your Child Theme

You can update your child theme in three ways:

  1. Using the Theme File Editor in WordPress.
  2. Editing files locally and re-uploading them.
  3. Using an FTP client to directly edit files on your server.

Creating a GeneratePress Child Theme – Conclusion

Setting up a GeneratePress child theme is a straightforward process that offers long-term benefits. It allows you to make customizations without worrying about updates erasing your hard work.

Required Resources

GeneratePress Logo
Free Options
Credit to The Admin Bar
The Admin Bar is a resourceful platform dedicated to WordPress. From insightful videos on optimizing your WordPress tech stack to creative hacks for faster web page creation, the channel is a treasure trove for both beginners and advanced WordPress users.
How to Create a GeneratePress Child Theme
Welcome back!
Enter your Helwp credentials to sign in.

No Account yet? Sign Up

My Account
Give Feedback
Describe your feedback *
Rate Helwp
Problem *
Describe the problem
Want us to reply?
Your E-Mail
Affiliate Disclosure

At Helwp, we’re committed to transparency and honesty. Therefore, we want to inform you that some of the links on our website are affiliate links. This means that, at no additional cost to you, we may earn a small commission if you click through and make a purchase.

We only promote products or services that we genuinely believe in. These affiliate commissions help us to maintain the website and continue to provide you with free, high-quality WordPress content.

If you are interested in how you can support us even further, check out our support page.