[Theme: Customizr] I crashed my functions.php file. HELP!
-
Hi lovely people, hope you can help me because I’m kind of desperate….
I do not have a child theme – yes, I know BIG MISTAKE.
I’m a newbie so I was happily adding code to my functions.php file which I have found here and there.
First I added one for creating a widget in the header (code below):
add_filter( ‘tc_default_widgets’ , ‘add_featured_page_widget’ );
function add_featured_page_widget( $defaults ) {
$defaults[‘fp_widgets’] = array(
‘name’ => __( ‘Featured Pages Widget’ , ‘customizr’ ),
‘description’ => __( ‘Above the featured pages area on home’ , ‘customizr’ )
);
return $defaults;
}add_action(‘__before_fp’ , ‘display_my_fp_widget’);
function display_my_fp_widget() {
dynamic_sidebar(‘fp_widgets’);
}`That worked really nice, so I felt confident enough to paste somethings to try and get my widget (which is an optin form) without a margin to the right.
I can’t find what I pasted, but the thing is taht everything stopped working. I cannot access my website from any devices not even my wp-admin.
Here′s the message I got instead:
Parse error: syntax error, unexpected ‘.’ in /home/ladykpgc/public_html/wp-content/themes/customizr/functions.php on line 77
I do not know what to do. Cannot access my functions.php…cannot change anything…
PLEASE HELP!
PS: Oh, I am using Customizr.
I′ve been trying to find this theme code for the file functions.php but as I can’t access my wp-admin I cannot paste the correct code… thoughts?
thanks in advance!
- The topic ‘[Theme: Customizr] I crashed my functions.php file. HELP!’ is closed to new replies.