This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

cannot access to theme editor anymore

10 years ago · Last reply by Andrew Misplon 10 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

3
  1. phil_traveler 10 years, 4 months ago

    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. phil_traveler 10 years, 4 months ago

    I solved accessing to the file through C-Panel.

  3. Andrew Misplon Staff 10 years, 4 months ago

    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.

Have a different question or issue?

Start New Thread