Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix error after update of a theme

Discussion in 'Misc WordPress Requests' started by robvr6, Feb 16, 2018.

  1. robvr6


    error after update of a theme, by robvr6

    Hi all

    I hope I’m in the right place for the topic and it can be understood. What it isd I have just installed a new theme and I think its the latest version of wp but after the update I have got this error and cannot fix it or it could just be I don’t fully understand how to fix it.

    OK heres the error I’m getting

    Parse error: syntax error, unexpected ‘[‘, expecting ‘)’ in /home/wwwimperialweddi/public_html/wp-content/themes/royal/framework/theme-functions.php on line 401

    I assume its on line 401 but Im not very advanced when it comes to php but a more of a programmer may see it straight away because below is line 401 in the file

    <?php if ( ! empty( etheme_get_option(‘fixed_header_bg’)[‘background-color’] ) ) echo ‘.fixed-header-area{border-color:’ . etheme_get_option(‘fixed_header_bg’)[‘background-color’] . ‘}’; ?>

    thanks in advance

    error after update of a theme

Share This Page

Monarch Social Sharing Plugin