Home>Support>cannot access to theme editor anymore

cannot access to theme editor anymore

Help, I add a code in the editor but I made some mistake
I now get this message and can’t access to change it! The site is not visible anymore :(

Parse error: syntax error, unexpected ‘}’ in /home/thebutt3/public_html/wp-content/themes/vantage/functions.php on line 468

How to fix that?

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 7 days ago phil_traveler

    I added a code in the function.php file.

     
    }
    $id = get_the_ID();
    $categories = get_the_category();
    if ( ! empty( $categories ) ) {
    	$date .=  sprintf(__(' in %s', 'recent-posts-widget-extended' ), $categories[0]->name );
    } 
  2. 9 years, 7 days ago phil_traveler

    I solved accessing to the file through C-Panel.

  3. 9 years, 7 days ago Andrew Misplon
    Hi, I Work Here

    Hi Phil_traveler

    Glad to hear you made progress.

    Please, keep in mind that all WordPress.org themes completely overwrite their own folder during theme updates. Changes made to any parent theme files will be lost if you ever run a theme update.

    A child theme should be used:
    https://codex.wordpress.org/Child_Themes

    All the best.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More