Support » Theme: XT Corporate lite » Parse error: syntax error, unexpected

  • Hello guys!

    very nice your theme, but im having a bug: Parse error: syntax error, unexpected ‘[‘, expecting ‘)’ in /home/tiquality/www/espaconails/wp-content/themes/xt-corporate-lite/templates/content-page.php on line 5

    could you help me?

    tks!

Viewing 1 replies (of 1 total)
  • Theme Author Xylus Themes

    (@xylus)

    Hello @tiquality,

    This error is because of “Lower PHP version (less than 5.4)”, which not support latest array declaration “[]”. Please replace “[]” with “array()”. See below example for more clarification.

    Replace this wp_link_pages(['before' => '<nav class="page-nav"><p>' . __('Pages:', 'xt-corporate-lite'), 'after' => '</p></nav>']);
    with wp_link_pages(array('before' => '<nav class="page-nav"><p>' . __('Pages:', 'xt-corporate-lite'), 'after' => '</p></nav>'));

    Let us know if you still experience issue.

    Thanks,
    Xylus Themes

Viewing 1 replies (of 1 total)
  • The topic ‘Parse error: syntax error, unexpected’ is closed to new replies.