WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. vildemiou123
    Member
    Posted 9 months ago #

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

    <?php
    
    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 9 months 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
    Member
    Posted 9 months ago #

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

Reply

You must log in to post.

About this Topic