Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › How to open a Product Image link in a new tab when one clicks on it
- This topic has 5 replies, 2 voices, and was last updated 12 years, 6 months ago by interlinkusa1.
-
AuthorPosts
-
April 30, 2012 at 1:13 pm #6204interlinkusa1Member
I have the three plugins. eMember, eStore and eAffiliate. I have different sales pages. On eStore I have the product images. When one clicks on the image – sales page opens in the same tab. How can I have the sales/product page open in a separate tab.
I saw an answer in the forum which may apply to my question. This is what it says:
To open a new browser window you simply have to add target=”_blank” attribute to a link.
Open the “eStore_misc_functions.php” file and look for the line of code….
If this is the right answer for my question then “Where and how do I find eStore_misc_functions.php file”.
So many times I see some answers where it says do this or that without really telling how to get to that point. As a total beginner to this plugin it will be very much appreciated if the answer also tells as to how to even get to the starting point.
Thanks for you help.
May 1, 2012 at 3:43 am #44606adminKeymasterIf you tell me which fancy display you are using then I will be able to tell you more specific instruction.
May 2, 2012 at 12:06 am #44607interlinkusa1MemberThank you for your reply. I am using [wp_eStore_fancy2 id=1].
URL is [https://emoveon.com/premium-content/]
If I need to use a different code then please let me know.
May 2, 2012 at 7:46 am #44608adminKeymasterOpen the “eStore_button_display_helper.php” file and look for the following line of code:
$output .= '<div class="eStore-thumbnail"><a href="'.$ret_product->target_thumb_url.'" title="'.$ret_product->name.'"><img class="'.$thumb_class.'" src="'.$thumb_img.'" alt="'.$ret_product->name.'" /></a></div>';
Once you find it, change it to the following:
$output .= '<div class="eStore-thumbnail"><a href="'.$ret_product->target_thumb_url.'" title="'.$ret_product->name.'" target="_blank"><img class="'.$thumb_class.'" src="'.$thumb_img.'" alt="'.$ret_product->name.'" /></a></div>';
That should make the thumbnail open the target URL in a new tab/window.
May 2, 2012 at 1:45 pm #44609interlinkusa1MemberThank you for your reply. You said:
“Open the “eStore_button_display_helper.php” file and look for the following line of code”
Here’s a beginner question. How do I get to “eStore_button_display_helper.php” file?
I looked in eStore Settings, Admin Functions and also went over each tab but could not figure out how to access “eStore_button_display_helper.php” file.
May 2, 2012 at 9:48 pm #44610interlinkusa1MemberHey…. what do you know I figured it out and followed your instructions and it worked. Thanks. You don’t need to reply. The image is now opening in a new tab.
-
AuthorPosts
- You must be logged in to reply to this topic.