Child theme

Posted in: Newspaper
Post count: 66

Just wanted to ask if I need to include single templates, smart lists, modules, headers, blocks, block template, category template, etc in the child theme folder in cpanel?
As detailed here:
https://forum.tagdiv.com/the-child-theme-support-tutorial/

And also I have changed the layout of the template, will I lose that once I activate my child theme? will I have to do all that again?

Post count: 20688

Hi,

A child theme purpose is to customize the theme safely, without losing the modifications when the theme is updated. You can include the files that you want to modify in the child theme, and create the same structure or path leading to the file as the main theme.
Files included by you in the child theme will have priority over the files from the main theme. If you copied and modified a post template file in the child theme, the this file will be used.
The tutorial mentioned all the files that can be overridden with a child theme, at the moment.

Thanks

Post count: 66

Thank you Simion C, that was helpful.

Can you please elaborate on these points in the child theme support?

12. The wordpress templates which are not loaded by theme API, like archives.php, header.php, etc, have child theme standard support.

The theme API in the child theme:

Important!

We strongly DO NOT RECOMMEND using the theme API from the child theme.

If I have to make changes in the child theme then I have to use the theme API in style.css?

Post count: 20688

Hi,

It means that there is no specific requirement to modify those files. The general rules of a WordPress child theme apply
https://codex.wordpress.org/Child_Themes
The theme API should not be used from the child theme
https://forum.tagdiv.com/the-theme-api/

Thanks

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.