• Greetings,

    Might not be the right place to report this… I downloaded the new Canape Theme from WordPress.com to use on a self-hosted blog, and upon activation it throws a fatal error:

    Parse error: parse error in /*****/wp-content/themes/canape-wpcom/front-page.php on line 25

    If I uncomment that line the theme works, albeit without the featured image.

    Thanks.

Viewing 1 replies (of 1 total)
  • Hi,

    The PHP Version to old – i suppose – you may try:

    $tmp = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ),'full');
    $bgPic = $tmp[0];

    <div class="hero" id="hero" style="background-image: url( '<?php echo esc_url($bgPic); ?>' );">

Viewing 1 replies (of 1 total)
  • The topic ‘"Canape" theme fatal error’ is closed to new replies.