Site logo

Archived topic

Installing child theme on active site

3 replies · Started by Alexander on May 23, 2022

Viewing posts 1–4 of 4

Hi! I wonder what is the best step-by-step practice of installing a child theme on active site with custom CSS, lots of customization in functions.php file and many elements? The main purpose is updating the main theme without losing functions.php. Thanks for your great support!

Hi there,

I would:

1. Download the GP Child Theme zip:

https://generatepress.com/api/themes/generatepress_child.zip

2. Open the zip files styles.css and functions.php files in my IDE on my desktop. I use Visual Studio Code but there are plenty of others like Atom, Sublime, XCode, Brackets.

2.1. Copy my current sites CSS to style.css
2.2. Copy ONLY the custom PHP from current site to functions.php

3. Zip the Child Theme folder back up.

4. Remove the Custom Functions and Styles from the current site.

5. Install Child Theme, make any fixes such as updating Logo and footer bar copyright info.

For peace of mind i would suggest using a Staging server to make the changes to the live site.

David, thanks for your support!

You're welcome

This archived topic is closed to new replies.