WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. narined
    Member
    Posted 1 year 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.

    ERROR:
    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
    bones_load_css(array(
    'library/css/bootstrap.min.css',
    //'library/css/bootstrap-responsive.min.css',
    'http://fast.fonts.com/cssapi/ba530772-e632-4e7a-b387-e98e19816f57.css'
    ( ));

    // Load Js
    bones_load_js(array(
    //'library/js/libs/bootstrap-touch.js',
    'library/js/libs/bootstrap.min.js',
    'library/js/libs/jquery.slider.js',
    'library/js/libs/jgestures.min.js'
    //'library/js/libs/zepto.min.js',
    //'library/js/libs/zepto.flickable.min.js'
    ));

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

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

  2. esmi
    Forum Moderator
    Posted 1 year 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