• Hi,

    I’d like one of the products of my product listing to be opened in a new tab. How can I implements this code? Is it possible?

    [show_products product=”6438″….. what else?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author ndre

    (@ndre)

    Hello,

    The only way to achieve this is to create custom template from the listing that you are using. You should add the following attribute to the link tag: target=”_blank”.

    So for classic grid it should look like this:

    <a href="<?php echo $product->url() ?>" target="_blank">

    Thread Starter larraioz

    (@larraioz)

    Great thanks! And then how can I implement the changes?

    I’d like just the first product opening in a new tab, and the following ones on the same tab. How can I have the first product have a different template to the other ones?

    See here: https://larraioz.com/media/imagenes/Captura-foro-dudas-0606.PNG

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Open product in a new tab’ is closed to new replies.