• Hi!

    I updated to the latest version Storefront theme and getting now following parse error on the site&admin. I′m using Storefront`s childtheme.

    Parse error: syntax error, unexpected T_FUNCTION in /mysite/htdocs/wp-content/themes/storefront/inc/customizer/class-storefront-customizer.php on line 74

    Line 74 is following code, code validator gives an error too but as I don`t know php, have no idea how to fix it…

    public function default_theme_mod_values() {
          foreach ( Storefront_Customizer::get_storefront_default_setting_values() as $mod => $val ) {
            add_filter( 'theme_mod_' . $mod, function( $setting ) use ( $val ) {
              return $setting ? $setting : $val;
            }, 10 );
          }
        }

    [moderated to add ‘code’ style to the code]

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

    (@sandras21)

    I deleted new Storefront from ftp and luckily I had old version zip in my computer. Uploaded that to ftp, so I can access again wp-admin and I can activate storefront but I can`t activate anymore my childtheme. It claims that childtheme parenttheme does not exist but it does. The name of the template is storefront as it used to be before. Do I need to do some other changes to get the site properly up again?
    Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘After Storefront theme update parse error on the site’ is closed to new replies.