Do I need functions.php in child theme

Years ago I created a child theme in WordPress, this included style.css and functions.php.

I was getting the following error

[19-Sep-2024 17:14:08 UTC] PHP Parse error: syntax error, unexpected end of file in /home/customer/www/ultralightsound.co.uk/public_html/wp-content/themes/flatsome-child/functions.php on line 89

Its been several years since I did this and for now can I just get rid of functions.php by renaming it to functions.php.old to get things working (and it will revert to using the functions.php in the parent theme?). I can then investigate more fully at my pleasure?

2 Comments
  1. Yes, you can rename functions.php to functions.php.old to disable it and revert to the parent theme’s functions. Be sure to back up the file first before making changes. This will get your site working, and you can fix the issue later.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer