• Resolved joseph_wordp

    (@joseph_wordp)


    Hi all,
    I am a newbie and first time posting.
    Okay, I started building a website by following some youtube videos using the 2013 theme. I am almost done, say 80%.

    I wanted to have the header adjust as I adjust the browser size. After reading some threads, I realized that I have to create a child theme.

    First I had trouble because I received an error of broken theme. I fixed it and was due to the template name not being the same as the parent theme name.
    Now, I get the following error when I try to activate the child theme: Fatal error:
    Cannot redeclare twentythirteen_setup() (previously declared in /home/ldinte5/public_html/wp-content/themes/twentythirteen-child/functions.php:69) in /home/ldinte5/public_html/wp-content/themes/twentythirteen/functions.php on line 108

    Somethings I did differently that maybe causing the issue? In my child theme folder I copied all the contents of the parent theme. I did this because I am almost 80% done and wanted to keep all my changes in other files (if applicable). I am not sure what other files contain my custom changes. Also if there is an update to WP in the future, files that I’ve modified will not get overwritten.

    Please let me know how I can resolve the error above.

    thanks,
    Joseph

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    You have two functions with the same name: twentythirteen_setup().

    It’s like when you try and save a file with an already existing file name it creates an error and warns you. ??

    What in particular are you wanting to keep from the function?

    Thread Starter joseph_wordp

    (@joseph_wordp)

    Hello Jose,
    Thank you.
    I really don’t know why I keep the functions…newbie choice I guess.

    I will just remove it. and see what happens.

    Joseph

    Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Before you go and do that, what are you trying to keep? That will ultimately determine what functions you want to keep and what you want to overwrite.

    Thread Starter joseph_wordp

    (@joseph_wordp)

    Hello Jose,
    Thanks for the help. Since my site is simple, I’ve just removed all the other folders and files that are in my child theme folder, except the style.css of course.

    I will start another thread because I have other issues I need help with.

    thanks,
    Joseph

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘child theme troubleshooting’ is closed to new replies.