Home Forums WoodMart support forum Open image links in a new window

Open image links in a new window

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #174785

    saurabhiit2003
    Participant

    Dear team,

    Can you help me with opening Product image & title links (on category pages etc) in a new window?

    Thanks,
    Saurabh

    #174791

    Hello,

    When you add the link to the element there should be the option, you should enable this: https://prnt.sc/r57f9q

    Best Regards

    #174848

    saurabhiit2003
    Participant

    Dear Elise, Thanks for the response. I think I was not able to communicate this properly. The issue is, all my product links are external links. Using the code provided by Data Feeder, the Buy Now “button” could be customized to open in a new window. However, when we click on Product Image and Product Title in the product grid, they open in the same window. Here is what Datafeedr had to say:

    “Hi

    I think it’s not working because your theme “woodmart” is using custom HTML for the Loop display.

    I would ask the theme developers how to get your image links to open in a new window. They should be able to advise.”

    Please let me know if this can be solved. Please check it in a category link on our website below:

    #175007

    Hello,

    In order to change the URL code as per your needs you need to edit file woodmart/woocommerce/content-product-standard.php this file contains the image link.

    This file contains the title link woodmart/inc/integrations/woocommerce/template-tags.php find the function woocommerce_template_loop_product_title()

    Best Regards

Viewing 4 posts - 1 through 4 (of 4 total)