Hello @shopsangam
You are correct that the primary purpose of a child theme is to allow you to make modifications to your website without altering the parent theme’s core files. This ensures that you can update the parent theme without losing your customizations, which is crucial for maintaining the security and functionality of your website.
Here’s the right way to approach this:
1. **Use a Parent Theme**: Always install and activate a well-supported parent theme. This theme should receive regular updates from its developers, including security patches and new features.
2. **Create a Child Theme**: If you need to make customizations, create a child theme. The child theme will inherit the parent theme’s functionality, styles, and features. You can add your custom CSS, PHP, and other modifications in the child theme without affecting the parent theme.
3. **Keep Your Parent Theme Updated**: Regularly update your parent theme to ensure you have the latest security updates and new features. Since your customizations are in the child theme, these updates won’t override your changes.
4. **Regular Backups**: Always take regular backups of your website, including your child theme customizations. This ensures that you can restore your site if anything goes wrong during updates.
By following these steps, you can ensure that your website remains secure, up-to-date, and customized to your needs.
Kind regards,
Jack Richardson
The 8theme’s team