• Resolved WebsitesPro

    (@websitespro)


    Hi, i created today a child theme, and at the beginnig all was good but then i was editing functions.php and the page fall, this is the link http://nuevo.luissomaza.com/ ,the template i use is Syndey from Athemes.
    This is the error Fatal error: Cannot redeclare class Sydney_Latest_News in /home/luissoma/public_html/nuevo/wp-content/themes/sydney/widgets/fp-latest-news.php on line 131

    I created the child theme because i needed to add more entries at the section latest news, i follow the insturctions for the support of the page, but then happen the error, and i have wait all the day for an anwser but they are not responding now.

    The error has change a few times because i tried to fix it uploading the original archives again, but the only thing that change is the error and the line that says or the directory.

    What can i do??

    Please i really need help, my boss is gonna kill me if he see the page is dawn.

Viewing 14 replies - 16 through 29 (of 29 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Okay so your Child Theme functions.php file is like a thousand lines long – weird. It shouldn’t have any code in there by default.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Rename your functions.php file to “functions-old.php” and it won’t be loaded any more.

    Thread Starter WebsitesPro

    (@websitespro)

    im trying to paste here the code, i will copy in parts, i tried all and nothing happens

    I add you can make specific functions.php to split the different parts. And also, if your functions.php is too big, in general it means you should make a plugin.

    Thread Starter WebsitesPro

    (@websitespro)

    ok i will do it

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Yeah it’s coming through but I’m deleting it because I said don’t post it if it’s like a thousand lines long.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    You know you can always rename your active theme’s folder to something else and WordPress will automatically activate one of the default WordPress themes? That’s why it’s always recommended that you keep the Twenty Fourteen/ Fifteen/ what ever default theme is distributed/ in your “wp-content/themes” folder.

    Thread Starter WebsitesPro

    (@websitespro)

    The problem solved changing functions.php file to “functions-old.php” , thank you so much!!!!!!!!!!! 😀
    The page is loading normal and the wordpress too
    How can i add the three more entries without editing the child theme?

    Thread Starter WebsitesPro

    (@websitespro)

    thanks, i still have those themes but i didnt knew that

    Thread Starter WebsitesPro

    (@websitespro)

    sorry about the thousand lines i am not quite good in english

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Hehe that’s okay

    Thread Starter WebsitesPro

    (@websitespro)

    Does exist a plugin for add more entries in an easy way?

    Glad to know it’s improving:)

    Not sure of the plugin you’re looking for. It’s best to do that manually I think.

    Thread Starter WebsitesPro

    (@websitespro)

    how i do manually? i am a beginner in wordpress

Viewing 14 replies - 16 through 29 (of 29 total)

The topic ‘Error with Child Theme’ is closed to new replies.