- This topic has 6 replies, 3 voices, and was last updated 12 years, 2 months ago by .
Viewing 7 posts - 1 through 7 (of 7 total)
Viewing 7 posts - 1 through 7 (of 7 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › eStore – open images in a new window for fancy10 display
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?
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.
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?
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.
[http://genanvendt.dk/traekasser/]
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.
Thank you so much! That fixed it!!!