-
AuthorPosts
-
May 18, 2018 at 10:00 am #958517
Guten Tag,
danke für euer Super Theme!Beipielseite:
Bei Klick auf das Produktbild soll sich ein neuer Tab mit dem Bild öffnen, damit der Besucher beim Schließen des Bildes nicht von der Seite “fliegt”.
Irgendwie stehe ich gerade auf dem Schlauch, ich habe schon lange gesucht aber keine Antwort gefunden.Ich habe es schon in der footer php mit folgendem Code versucht:
`add_filter( ‘wp_footer’, ‘enfold_customization_product_image_newtab’ ); function enfold_customization_product_image_newtab() { ?> <script type = “text/javascript”> jQuery(document).ready(function(){ jQuery(‘.single-product-main-image a’).attr(‘target’, ‘_blank’); }); </script> <?php }
Aber das hat nichts gebracht.Danke für eure Antwort!
LG, albiMay 21, 2018 at 11:25 am #959667Hey albi84,
Thank you for using Enfold.
Where can we see the product image? Please provide the link to the product page so that we could check it.
Best regards,
IsmaelMay 22, 2018 at 8:05 am #960172May 23, 2018 at 7:02 pm #961100Hi,
Thanks for the info. Please edit the image elements then go to the Link Settings panel. Set the “Open new tab/window” to the second option (open new tab/window).
Best regards,
IsmaelMay 23, 2018 at 7:18 pm #961127There are a lot of pictures … Is not there a global setting or a code for it?
May 25, 2018 at 11:14 am #962022Hi albi84,
You can enable lightbox and the images will open in lightbox. Does it not work for you?
Best regards,
VictoriaMay 25, 2018 at 12:06 pm #962054Hi Victoria,
I do not want to use the lightbox, but the images should be opened on a NEW page.
Best regards,
AlmutMay 28, 2018 at 11:32 am #963070Hi albi84,
It’s either one or the other. The user clicks on the image and the image opens in the lightbox or user clicks on the image and the image opens in the new tab.
If you see it different, please describe how you see it.
Best regards,
VictoriaMay 28, 2018 at 2:00 pm #963204Hi Victoria,
I click on the picture and the picture opens in the SAME tab – not in the lightbox and not in a new tab. The pictures are in a color section. Could it be because of that?I have just tried:
1. Link settings: set manually
2. save
3. Link settings: Lightbox
4. saveNow the picture opens in the new tab. However, that is quite expensive.
I thought maybe there is a shortcode to do that globally.Best regards,
AlmutMay 30, 2018 at 1:00 pm #964186Hi Almut,
The setting you set on an image? No, there is no such shortcode, there can be code added for that, but it is out of the scope of our support, unfortunately.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.