Support » Plugins » Hacks » Featured Image not displaying on WooCommerce Product Page

  • Resolved tspofford

    (@tspofford)


    A thread last year advised to add “product” to “add_theme_support” in functions.php. I’ve done this, even twice copying the line from the earlier message thread and of course triple checking punctuation. But no matter what, I get:

    Parse error: syntax error, unexpected T_ARRAY in /home/spoforg/public_html/octoberfishjewelry.com/wp-content/themes/twentyfourteen/functions.php on line 77

    when I Update File. Here is the relevant code, “line 77” being the second one, which is the only thing I changed (by adding “product”):

    // Enable support for Post Thumbnails, and declare two sizes.
    add_theme_support( ‘post-thumbnails’, array( ‘post’, ‘page’, ‘movie’, ‘product’ ) );
    set_post_thumbnail_size( 672, 372, true );
    add_image_size( ‘twentyfourteen-full-width’, 1038, 576, true );

    The previous thread is at http://wordpress.org/support/topic/plugin-woocommerce-excelling-ecommerce-featured-image-not-an-option-on-product-page?replies=6

    Any help greatly appreciated! http://octoberfishjewelry.com

  • The topic ‘Featured Image not displaying on WooCommerce Product Page’ is closed to new replies.