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.
Modifying the active theme files is never recommended because they will be lost when updating, 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. They will be saved in the database so they do not affect the theme files, and you can constantly update them without a problem.
However, we must create a child theme if we discuss WordPress functions, PHP, JavaScript codes, etc.
Here, you can generate your personalized child theme for Astra:
If you opt for the most straightforward option, you 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 child theme's version number, set yourself as the author with your website's URL, and define your description of the child theme.
You can specify a custom slug (folder name) and even upload your custom image.
When you finish, you must press the "Generate" button to create the child theme. Then, it will automatically start downloading a ZIP file with your child's theme.
Now, you 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 have to activate it.
You will have your child's 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.
Modifying the active theme files is never recommended because they will be lost when updating, 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. They will be saved in the database so they do not affect the theme files, and you can constantly update them without a problem.
However, we must create a child theme if we discuss WordPress functions, PHP, JavaScript codes, etc.
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 most straightforward option, you 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 child theme's version number, set yourself as the author with your website's URL, and define your description of the child theme.
You can specify a custom slug (folder name) and even upload your custom image.
When you finish, you must press the "Generate" button to create the child theme. Then, it will automatically start downloading a ZIP file with your child's theme.
Now, you 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 have to activate it.
You will have your child's theme installed and active.
Have a great day.