0

I bought Aurora wordpress theme from Themeforest. When I'm trying to install it, I have parse error: unexpected ':' in functions.php file on line 361.

Functions.php line 361

$customizer_template_setting = get_theme_mod('aurora_post_layout') ?: 'default';

How can I fix it?

0

1 Answer 1

3

It's the shortened ternary syntax, that is only available in PHP 5.3 and newer. You should check your PHP version (and in case update it, recommended!).

That syntax is equivalent to: $customizer_template_setting = get_theme_mod('aurora_post_layout') ? get_theme_mod('aurora_post_layout') : 'default';

The extreme solution if you cannot update your PHP version would be to replace that line.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.