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

Home Forums Jevelin Theme After installing theme I get an error in the amp.php file

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • [email protected]
    Participant

    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

Viewing 2 posts - 1 through 2 (of 2 total)

Popular choice

Professional Developers At Your Fingertips!

If you need services beyond standard support, we've got your back!

Services we offer:

Demo setup
Advanced customization
Layout adjustment
Graphic work / visualizations
Custom coding
Full WordPress development and design

Services

What we can offer

  • Demo setup +

    If you'd prefer not to handle the installation yourself or need help getting started, we'll set everything up for you.

  • Layout adjustment +

    We'll help you rearrange sections, adjust spacing, and modify the page structure to fit your needs.

  • Advanced customization +

    More complex styling changes, theme option modifications, and third-party integrations.

  • Custom coding +

    If you need something that's not included in the theme, we can code it for you.

  • Graphic work / visualizations +

    Web design services to create custom sections, pages, and blocks for your theme, plus graphics and visualizations.

  • Full WordPress development and design +

    Full website builds, custom theme development, or plugin creation from scratch.

  • About pricing +

    We'll provide a clear quote based on what you need. No hidden fees.

Professional Developers At Your Fingertips!

Custom Work Form