• Resolved polyliving

    (@polyliving)


    I created a child theme and loaded it up. This is the error I got back. I tried to go back to the original theme and got the same error!
    Help

    Fatal error: Cannot redeclare twentyeleven_excerpt_length() (previously declared in /home/content/73/9081873/html/wp-content/themes/twentyeleven-child/functions.php:335) in /home/content/73/9081873/html/wp-content/themes/twentyeleven/functions.php on line 337

    Polyliving.net

Viewing 7 replies - 1 through 7 (of 7 total)
  • Did you copy the functions.php file from the parent to the child?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    If you created a Child Theme, it should just consist of a style.css file to begin with. Remove that functions.php file.

    Thread Starter polyliving

    (@polyliving)

    So I need to delete everything from the child folder except the style.css?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Yes, but leave header.php in there because we’ll need that for later.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Also in your style.css file, make sure you’re importing the stylesheet over like the example. At the moment you’re just copying all the styles instead.

    Thread Starter polyliving

    (@polyliving)

    I did the import command:

    @import url(“../twentyeleven/style.css”);

    But the child theme is giving me the default Twentyeleven I thought it would be a duplicate of my current theme. Instead I’m getting the default settings.

    Is that right?

    Thread Starter polyliving

    (@polyliving)

    I was able to get my original theme back. I had to reload the custom code Andrew helped me with. I am going to need to study this some more before I implement anymore changes.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Child Board Error!’ is closed to new replies.