- Moderator
- #1
Hello Members,
If you use the Astra theme and you have to make modifications in the theme's PHP files or customizations to add in the form of functions, the idea is that you do not modify the theme files, but create a child theme.
It is never recommended to modify the files of the active theme because when updating they will be lost, so it is best to create a child theme.
Another thing is the style modifications, through CSS, which you can always do in the WordPress customizer, and they will be saved in the database, so they do not affect the theme files and you can always update without a problem.
But if we talk about WordPress functions or PHP, JavaScript codes, etc., then we must make a child theme.
Here you can generate your personalized child theme for Astra:
If you opt for the simplest option, you just have to give it a name and press the "Generate" button, but I encourage you to display the Advanced Options to customize it a bit.
You can customize the version number of the child theme, set yourself as the author, with the URL of your website, and define your own description of the child theme.
As well as specifying a custom slug (folder name) and even uploading your own custom image.
When you finish, you just have to press the "Generate" button so that the child theme is created and it will automatically start downloading a ZIP file with your child theme.
Now you just have to go to the administration of your WordPress and in the Appearance section, you can add the new theme by uploading it.
Once installed you just have to activate it.
And you will have your child theme installed and active.
Have a great day
If you use the Astra theme and you have to make modifications in the theme's PHP files or customizations to add in the form of functions, the idea is that you do not modify the theme files, but create a child theme.
It is never recommended to modify the files of the active theme because when updating they will be lost, so it is best to create a child theme.
Another thing is the style modifications, through CSS, which you can always do in the WordPress customizer, and they will be saved in the database, so they do not affect the theme files and you can always update without a problem.
But if we talk about WordPress functions or PHP, JavaScript codes, etc., then we must make a child theme.
Here you can generate your personalized child theme for Astra:
You don't have permission to view the spoiler content.
Log in or register now.

If you opt for the simplest option, you just have to give it a name and press the "Generate" button, but I encourage you to display the Advanced Options to customize it a bit.
You can customize the version number of the child theme, set yourself as the author, with the URL of your website, and define your own description of the child theme.

As well as specifying a custom slug (folder name) and even uploading your own custom image.

When you finish, you just have to press the "Generate" button so that the child theme is created and it will automatically start downloading a ZIP file with your child theme.
Now you just have to go to the administration of your WordPress and in the Appearance section, you can add the new theme by uploading it.
Once installed you just have to activate it.
And you will have your child theme installed and active.
Have a great day