I'm pretty new at this WordPress business, and I'm working hard on learning how to use CSS, PHP, FTP and all other acronyms. :-P
I have encountered a frustrating challenge that I'm hoping someone here would be able to help me with: I can't create a child theme for the Sundance theme.
I have done the following:
- I created a new folder called 'sundance-child' within the /wp-content/themes/ folder.
- I put in the newly created folder a copy of 'style.css', 'rtl.css' and 'functions.php' from the original 'sundance' theme folder, all identical to the parent files.
When I tried loading the new child theme, the following message appeared:
Fatal error: Cannot redeclare sundance_set_content_width() (previously declared in /hermes/bosweb/web034/b342/ipg.johanflybringcom/wp-content/themes/sundance-child/functions.php:16) in /hermes/bosweb/web034/b342/ipg.johanflybringcom/wp-content/themes/sundance/functions.php on line 30
What can I do to fix that? I tried changing some bits of code in the files but it either didn't work or it just created new error messages (however still "cannot declare") pointing at other functions/files.
Any help would be hugely appreciated. Thank you.