A child theme inherits the functionality of the parent theme and allows you to modify the styling, the layout ... of the parent theme to any extent without editing the files of the parent theme itself. Without a child theme, when you update the Dottoro Theme, your changes will be overwritten and lost. Therefore, if you plan to modify your theme, it is highly recommended to use a child theme.
1 | Download our demo child theme. |
2 | Log in to your WordPress dashboard and navigate to Themes / Install Themes / upload. Upload the downloaded file, install and activate it. |
3 | You are done. Now you can get to work and make changes in your child theme. |
Prior to version 1.13, the Dottoro theme loads the style.css file of a child theme as standard in WordPress.
It means if a child theme is used, the theme only loads the style.css file of the child theme and if you want to load the stylesheet of the Dottoro theme, you have to import it (@import rule).
The main drawback of this mechanism is that every time the Dottoro theme is updated you have to change the version number in the @import rule manually (?ver=...) to ensure that your visitors get the latest stylesheet of the Dottoro theme.
If you forget to modify the version number, the browsers of your returning visitors won't download the latest version of the theme's style.css file so your website will not appear properly.
To solve this problem, the loading mechanism of stylesheets has been changed in version 1.13.
Dottoro theme from version 1.13 loads both the style.css file of theme and the style.css file of the child theme in the following order:
@import url("../dottoro/style.css?ver=...");