Hi!
https://forum.tagdiv.com/child-theme-documentation/ – here,
in this paragraph: 2. The following files can be overrided by the child theme: Template files
you mentioned file named loop-simple.php. In theme’s files i can find only loop-SINGLE.php. Is it the same file or not?
UPD Oh, it’s supposed to be the same according the 3rd paragraph, just can delete this post
-
This topic was modified 12 years by
paulberrow.
Could you tell me what might be a problem, i added file footer.php to Child theme and added a counter code there. When i load my site using this Child theme – i see this counter code, but when i switch to parent theme – there is no code on my site..
Hi,
You have to add it in the main theme also if you want to use the main theme the changes are just for the child theme.
You can use the child theme and this way you can change the child theme files if you want to modify something without changing the main themes files.
Thanks
Sorry, it’s still not clear for me…what should i do if i need to add some code like counters, additional social buttons, text-indent tag and other stuff to files like footer, loop-single, css of my main theme and i don’t want to add them again after every update of the theme?
I thought if i add all this code to my child theme files all the changes start to work for main theme too and they don’t disappear after updates.
What will be if i add the changes to child theme and main theme after the main theme will be updated?
Ohh, i guess i got it, i shouldn’t switch to the main theme back, right? I just always use the child theme and make all the changes in it?
Yup, that’s how child themes work. They inherit from the parent theme except for what you’ve added in the child theme files. Updates to the parent theme are still reflected and everything, but your child theme modifications will still survive updates. 🙂
Thank you, now i got how it works! It took some time for it:)