Broken functions.php
-
Hi I seem to have made a fatal error in an attempt to rush something before I left work!
Quick history of what I have done so far…
I created a multi site in the aim of running 2 websites under one roof
I created the 1st website and all was well, I was using the ‘Divi theme’ and used a plugin called ‘child theme configurator’ to make a child theme. Again no problems at this stage.Today I decided to install ‘jetpack’ which I have used before with no problems. I saw that it had a breadcrumb function which I didn’t realise it had so I decided to quickly activate it before I left the office. I found the code that was needed to add to page.php but in my haste I somehow managed to add it to the child theme’s function.php. Since then all I get is
This page isn’t working
“site” is currently unable to handle this request.
HTTP ERROR 500Tried so far….
I removed the code I added (no effect)
I tried to remake my .htaccess (no effect)
I tried increasing my php memory (no effect)
I tried manually disabling my plugins (no effect)I have no access to my site or the admin page 🙁
My current functions.php of the child theme file looks like this:
<?php // Exit if accessed directly if ( !defined( 'ABSPATH' ) ) exit; // BEGIN ENQUEUE PARENT ACTION // AUTO GENERATED - Do not modify or remove comment markers above or below: if ( !function_exists( 'chld_thm_cfg_parent_css' ) ): functionchld_thm_cfg_parent_css() { wp_enqueue_style( 'chld_thm_cfg_parent', trailingslashit( get_template_directory_uri() ) . 'style.css', array( ) ); } endif; add_action( 'wp_enqueue_scripts', 'chld_thm_cfg_parent_css', 10 ); // END ENQUEUE PARENT ACTION[Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]
Is there anyone with any ideas before I make the drastic decision to start again 🙁
The topic ‘Broken functions.php’ is closed to new replies.