Home › Forums › Jevelin Theme › After installing theme I get an error in the amp.php file
Home › Forums › Jevelin Theme › After installing theme I get an error in the amp.php file
Here is the error Parse error: syntax error, unexpected ‘[‘ in /data/23/2/139/4/2791167/user/3070939/htdocs/wordpressnew/wp-content/themes/jevelin/inc/amp.php on line 28
I cannot access the webpage, here is line 27 through 42.
function templates_files( $file, $type, $post ){
$files = [
‘footer’,
‘header-bar’,
‘html-start’,
‘meta-taxonomy’,
‘single’,
‘style’,
];
if( in_array( $type, $files ) ) :
return locate_template( ‘inc/templates/amp-templates/’. esc_attr( $type ) .’.php’ );
endif;
return $file;
}
Thank you ,
Jeff Meisenburg
Hi Jeff,
I hope you are well today and thank you for your question.
I have tested it on my test site and it’s working fine for me using the below latest version of Jevelin theme.
Please login to access this file
Please make sure you are using the latest version of PHP on your server by referring to the information provided in the following pages.
https://www.wikihow.com/Check-PHP-Version
http://php.net/supported-versions.php
Best regards,
Shufflehound team