[resolved] Error and no access to my page (3 posts)

  1. vildemiou123
    Posted 1 year ago #

    I cant access my wordpress site anymore. I managed to plcae this code in the functions.php file

    add_filter( 'sidebars_widgets', 'disable_all_widgets' );
    function disable_all_widgets( $sidebars_widgets ) {
    	if ( is_home() )
    		$sidebars_widgets = array( false );
    	return $sidebars_widgets;

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]

    after updating the page i got this error message:

    Parse error: syntax error, unexpected '<' in /home/friskzmh/public_html/wp-content/themes/weaver/functions.php on line 76

    Now i cant access the page or the admin site. How can i change the php so my site gets back?

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    You will need to use FTP to access your theme's functions.php so that you can remove the code that you added.

  3. vildemiou123
    Posted 1 year ago #

    Thank you so much! I managed to fix it :)

Topic Closed

This topic has been closed to new replies.

About this Topic