• I am using the dkret3 theme and was trying to add support for custom menus using code I copied from a post on the theme forum. After I entered the code and tried to update I got this error:

    Parse error: syntax error, unexpected ‘<‘ in /home/swimming/public_html/wp-content/themes/dkret3/functions.php on line 120

    The code I added was NOT on line 120, nor anywhere near there. After I deleted all the code I had added, I continue to get this error and I can’t go anywhere else on my site. You also get this error now when you try to go to the home page. The ONLY place I can go on my site is the theme editor > functions.php file.

    So… I went back to the original theme folder and copied the functions.php file, deleted the “broken” one and pasted in the original. No joy. Still the same error…

    What now? I cannot even get to the admin panel to reinstall the theme.

    I hate php. :-{

    Kat

Viewing 1 replies (of 1 total)
  • Thread Starter techkat

    (@techkat)

    If it will help, here is the code from line 113 through 126:

    // build the #access menu
    add_action( ‘dkret_after_header’, ‘dkret_add_access_menu’ );
    add_action( ‘dkret_after_access_menu’, ‘dkret_rss_link’ );
    add_action( ‘dkret_after_access_menu’, ‘dkret_gallery_link’ );

    // build the header for every entry
    add_action( ‘dkret_before_entry’, ‘dkret_entry_title’ ); // add the title
    add_action( ‘dkret_before_entry’, ‘dkret_entry_meta_before’ ); // add meta information before posts – author, date and edit link

    // add AdSense blocks
    add_action( ‘dkret_after_header’, ‘dkret_leaderboard’ );
    add_action( ‘dkret_before_entry’, ‘dkret_adsense_before’ ); // add Google AdSense to posts
    add_action( ‘dkret_after_entry’, ‘dkret_adsense_after’ ); // add Google AdSense to posts bottom

Viewing 1 replies (of 1 total)
  • The topic ‘Syntax error in functions.php has hosed my site’ is closed to new replies.