Setting Up Child Theme

Posted in: Newspaper
Post count: 6

How to I set up a child theme on my theme so I dont lose my customization anytime I update my theme.

Post count: 22421

Hi,

The child theme is a bit complicated to understand at first. It is basically a re-write of the main theme.
Not all of the files in our theme will work from the child theme though .The main functions.php file requires custom implementation to be able to re-write the main file and all of the WP_Booster folder will not work as well from the child theme. If you move the post template files to the child, the theme will use those files and not the ones from the main theme. You have to use this guide to create the child theme properly: https://forum.tagdiv.com/the-child-theme-support-tutorial/ It’s basically a mirror image of the main theme.
However there is one important thing to know about a child theme. It is not update proof. This is a common mistake users make and update their themes and do not update the child theme causing lots of issues. The child theme serves the file you add to it. if that file is modified in a future update and you serve the old modified version of the file from the child theme, there could be consequences.
\So when using a child theme you have to keep a look-out if the files you added to the child theme get updated. If they do, you need to re-create your child theme with the current theme files and re-apply your modification. A child theme helps you skip a few updates as not all files get modified on each update but it is not update proof.

I hope this is clear enough…

Thanks.

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