WordPress.org

Ready to get started?Download WordPress

Forums

MarketPress - WordPress eCommerce
Single Page showing Double Image (1 post)

  1. n00bdesign
    Member
    Posted 1 year ago #

    I was wondering if there is a way to stop this plugin from showing the featured image in on a "single" page template. I have tried to just comment out that block of code, but it breaks my entire site. If you can think of a better way to stop the Featured Image from showing twice, I would love to hear about it. I would think that it would be better to have the Featured Image from the THEME to be disabled, but it would disable it from ALL "SINGLE" pages (or am I wrong?), which is not an option. Need help!

    **********************
    This is the block of code that I *think* is causing the double image, but I am not sure.

    if ($context == 'single') {
    //size
    if ($settings['product_img_size'] == 'custom')
    $size = array($settings['product_img_width'], $settings['product_img_height']);
    else
    $size = $settings['product_img_size'];

    //link
    $temp = wp_get_attachment_image_src( $post_thumbnail_id, 'large' );
    $link = $temp[0];

    $title = __('View Larger Image »', 'mp');
    $class = ' class="mp_product_image_link mp_lightbox" rel="lightbox"';

    http://wordpress.org/extend/plugins/wordpress-ecommerce/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.