Switching to child theme after building site

I’ve just built my first site using Bricks (main Bricks theme), and now I want to add some custom stuff to the functions.php, but I’m aware this should be done with a child theme and not the main theme file.

Can I just create my own child theme the traditional way? Or should I use the one available for download in the Bricks account? Is there a difference and will it break the site I’ve already built?

Thanks!

Hi,

as the prepared child theme is working out of the box, I don’t see a reason why you would not use that one - and then remove all the (demo) code inside, that you don’t need.

But, if you want to create your own, then feel free do do it as well. :slight_smile:

Matej

1 Like

Sorry, I’m a bit confused by your reply. I currently have the main bricks theme installed, but I want it to be a child theme so I can add custom functions. Do I need to use the official bricks child theme (downloaded from the website), or can I adapt the main one I’m already using to be a child theme?

I just don’t want to lose my progress on the site

Thanks for your help!

Yes, the easiest way is to use the officially provided Bricks child theme. If you didn’t modify any files on the Bricks theme itself, you won’t lose any data.

1 Like

Hey @Rupert,

I’m sorry if my answer was confusing. If I understand correctly, you made changed directly to the main Bricks theme? If yes, then please download the Bricks child theme, and move your functions from the main one to the child one - otherwise, your changes will get overridden when you will update Bricks.

You will not lose any progress in your Bricks website, once you switch to child theme and move all new functions/filters/actions… to it.

Matej

1 Like