Updated Question:
I’ve declared a basic child theme. As I create a function to enqueue stylesheets, my website crashes and gives me a Fatal error: Cannot redeclare thando_stylesheets() (previously declared in........ load_stylesheets() is a new function and has not been declared yet but I am getting an error saying it has been declared.
my function is new and has not been declared yet. Why am I getting redeclare error? All my other previously created themes do not have such an issue
Here is the error log
PHP Fatal error: Cannot redeclare thando_stylesheets() (previously declared in /Applications/MAMP/htdocs/In-progress/bros/wp-content/themes/wifibros/functions.php:5) in /Applications/MAMP/htdocs/In-progress/bros/wp-content/themes/Wifibros/functions.php on line 3
function thando_stylesheets() {
wp_register_style('bootstrap',
get_template_directory_uri().'/css/bootstrap.min.css',
array(),
1,
'all');
wp_enqueue_style('bootstrap');
}