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

  1. n00bdesign
    Posted 3 years 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') {
    if ($settings['product_img_size'] == 'custom')
    $size = array($settings['product_img_width'], $settings['product_img_height']);
    $size = $settings['product_img_size'];

    $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"';


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • MarketPress - WordPress eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.