Forums

HELP. I edited the function.php and i cant access my site to change back (2 posts)

  1. bambam123
    Member
    Posted 1 year ago #

    It just says..

    Parse error: syntax error, unexpected '<' in /home/barce132/public_html/social/wp-content/themes/reviewit-theme/reviewit/functions.php on line 22

    i copied the code before hand. I will copy into this box... there is no <. Even if there now is i cant get into the dashboard to change it back!!!!

    this is the code..

    <?php

    /*************************** File Directories ***************************/

    define( MY_THEME, get_stylesheet_directory() );
    define( MY_THEME_URL, get_stylesheet_directory_uri() );
    define( ghostpool_inc, TEMPLATEPATH . '/lib/inc/' );
    define( ghostpool_admin, TEMPLATEPATH . '/lib/admin/inc/' );

    /*************************** Additional Functions ***************************/

    // Main Theme Options
    require_once(ghostpool_admin . 'theme-options.php');

    // Meta Options
    require_once(ghostpool_admin . 'theme-meta-options.php');

    // Widgets
    require_once(ghostpool_admin . 'theme-widgets.php');

    // Sidebars
    require_once(ghostpool_admin . 'theme-sidebars.php');

    // Shortcodes
    require_once(ghostpool_admin . 'theme-shortcodes.php');

    // Custom Post Types
    require_once(ghostpool_admin . 'theme-post-types.php');

    // WP Pagenavi
    require_once(ghostpool_inc . 'wp-pagenavi.php');

    // Language
    require_once(ghostpool_inc . 'language.php');

    // TinyMCE
    require_once (ghostpool_admin . 'tinymce/tinymce.php');

    // BuddyPress Functions
    require_once(ghostpool_inc . '/functions-buddypress.php' );

    // Update Notification
    require_once(ghostpool_admin . 'theme-update-notification.php');

  2. ClaytonJames
    Member
    Posted 1 year ago #

    Just use your ftp client, or the file manager in your hosts control panel to edit the file or replace it with a backup copy.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.