Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

eStore – open images in a new window for fancy10 display

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › eStore – open images in a new window for fancy10 display

Tagged: fancy10 display, open image in a new window

  • This topic has 6 replies, 3 voices, and was last updated 12 years, 7 months ago by Panda.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • September 14, 2012 at 7:15 pm #7392
    Panda
    Member

    Is there no way to get fancy10 pictures (both the main picture and the additional pictures) open in a new window if you don’t use lightbox?

    September 14, 2012 at 11:32 pm #49306
    Peter
    Member

    Tweak 1: Open the “shortcode_include.php” file from the extra shortcodes plugin and search for the following line of code:

    $output .= '<a href="'.$ret_product->thumbnail_url.'" rel="lightbox['.$ret_product->name.']" title="'.$ret_product->name.'"><img src="'.$thumb_img_src.'" alt="'.$ret_product->name.'" /></a>';

    Once you find it replace it with the following (we are just adding target="_blank" within the a tag):

    $output .= '<a href="'.$ret_product->thumbnail_url.'" rel="lightbox['.$ret_product->name.']" title="'.$ret_product->name.'" target="_blank"><img src="'.$thumb_img_src.'" alt="'.$ret_product->name.'" /></a>';

    Tweak 2: After that, search for the following line of code:

    $output .= '<a href="'.trim($image).'" rel="lightbox['.$ret_product->name.']" title="'.$ret_product->name.'">'.$thumb_code.'</a>';

    Once you find it replace it with the following (we are adding target="_blank" within the a tag):

    $output .= '<a href="'.trim($image).'" rel="lightbox['.$ret_product->name.']" title="'.$ret_product->name.'" target="_blank">'.$thumb_code.'</a>';

    That should open the thumbnail images in a new window/tab.

    September 17, 2012 at 6:59 pm #49307
    Panda
    Member

    Thank you so much! That worked! However, the main picture does not open in a new window. Is it possible to make that happen also?

    September 18, 2012 at 4:15 am #49308
    admin
    Keymaster

    Tweak 1 mentioned in the above post is suppose to do that. Did you apply that tweak correctly? Post a link to the page where you have it so I can check it.

    September 18, 2012 at 7:37 am #49309
    Panda
    Member

    [http://genanvendt.dk/traekasser/]

    September 19, 2012 at 12:24 am #49310
    admin
    Keymaster

    Looks like you specified a value in the “Thumbnail Target URL” field of that product which is messing that tweak up. Edit this product and then remove the value you have in the “Thumbnail Target URL” field.

    September 19, 2012 at 10:45 am #49311
    Panda
    Member

    Thank you so much! That fixed it!!!

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ