Parse error: syntax error, unexpected T_FUNCTION.... (2 posts)

  1. narined
    Posted 3 years ago #

    I am getting this error:
    all my other wp works, just transfers this website to godaddy hosting from my developer's host now its not working.

    i though it was the version of php but it checked and i have 5.3.
    If i deleted the code section below, the site works, but now my slide show doesnt work and also the site is not responsive to screen sizes.

    Parse error: syntax error, unexpected T_FUNCTION in /home/content/f/a/c/facc2631/html/wp-content/themes/royal-de-versailles/functions.php on line 93

    This is the php code from my Function.php page

    * Queue custom CSS and scripts
    (***LINE 93 ERROR***) add_action( 'wp_enqueue_scripts', function() {

    // Load CSS
    ( ));

    // Load Js

    (***LINE 113 ERROR***)});

    * Queue custom CSS and scripts (admin)
    (***LINE 118 ERROR***) add_action('admin_enqueue_scripts', function(){
    // Load admin Js
    (***LINE 123 ERROR***)});

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    Try switching to the default theme by renaming your current theme's folder inside wp-content/themes and adding "-old" to the end of the folder name using FTP or whatever file management application your host provides.

Topic Closed

This topic has been closed to new replies.

About this Topic