Help setting up vantage child theme
Hi there
As a newbie I have just been learning about child themes and as I hadn't realised I should have set this up to begin with, I made my changes to the parent theme. Luckily I’ve only made about half a dozen minor changes that I made a note of. So I used your guide to setting up a child theme but the documentation only takes me so far, so I just had a few questions.
I have the child theme folder in my FTP under themes and have set it up as suggested in the tutorial to import styles. I have copied over any files I have changed in the parent theme and I have copied over just the code sections I added to the style.css. When I live preview the child theme all my pages, content listings, theme etc.. are there, but my widgets are all over the place, i.e. on the wrong page, in the wrong widget area etc… I have quite a complex widget set up using the logic widget, so things are hidden on certain pages and shown others. Is there a way I can get my widgets to be the same as my parent theme or is this something I have to do manually in the CMS.
The files I changed that I have coped across in full are:
- Archive-listing.php
- Header.php
- Sidebar.php
- Va-home.php
- Widgets.php (saved in an includes folder)
I also have the style.css and functions.php ready to add changes
I also wanted to ask,
- Now that I have copied across the 2 sections of the style.css to the child theme file, do I need to delete these parts from the parent theme?
- Or do I need to take the whole of the parent theme back to its default? If so how do I do this?
- Also am I correct in copying the whole documents over for files such as the header.php or should I just be copying the parts that have changes.
Any help would be much appreciated.
Rachel