Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › eStore – open images in a new window for fancy10 display
- This topic has 6 replies, 3 voices, and was last updated 13 years, 1 month ago by
Panda.
-
AuthorPosts
-
September 14, 2012 at 7:15 pm #7392
Panda
MemberIs 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 #49306Peter
MemberTweak 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 #49307Panda
MemberThank 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 #49308admin
KeymasterTweak 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 #49309Panda
Member[http://genanvendt.dk/traekasser/]
September 19, 2012 at 12:24 am #49310admin
KeymasterLooks 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 #49311Panda
MemberThank you so much! That fixed it!!!
-
AuthorPosts
- You must be logged in to reply to this topic.