• Resolved Vishal Lohar

    (@vlohar08)


    Hi,
    I am using Essential addons on my website. The website is under development and I am testing different things. My issue is when I use essential addons product carousel and click on the product image it takes me to random pages instead of the actual product page on which I clicked. This is a big issue.
    I tried to figure out this issue by myself by disabling all plugins but the issue didn’t resolved.
    Here is the video of the issue – https://youtu.be/NkBNtgMm3WQ

    Please help!

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @vlohar08,

    Can you please switch to a different theme like Astra, Flexia or Twenty Twenty. And, check back whether you’re having the same issue or not?

    Looking forward to hearing from you.

    Thank you.

    Thread Starter Vishal Lohar

    (@vlohar08)

    I tried Astra and Twenty Twenty themes and yes I am having the same issue.

    Thread Starter Vishal Lohar

    (@vlohar08)

    Finally, I found the code which was causing these issue. On the home page. I am using an image carousel and I wanted to set a separate link for each image. So I used this HTML code to set the links.

    <style>.swiper-slide-image{cursor: pointer;} </style>

    <script>
    document.addEventListener(‘DOMContentLoaded’, function () {

    /* Edit the links HERE */
    let links = [
    https://casesrocks.com/phone-cases/&#8217;,
    https://casesrocks.com/unisex-t-shirts/&#8217;,
    https://casesrocks.com/women/crop-hoodies/&#8217;,
    https://casesrocks.com/women/crop-tops//&#8217;,
    https://casesrocks.com/unisex-hoodies/&#8217;
    ];

    document.body.addEventListener(‘click’, function (e) {
    if (e.target.closest(‘.swiper-slide’)){
    let i = e.target.closest(‘.swiper-slide’).getAttribute(“data-swiper-slide-index”);
    location = links[i];
    }
    });
    });
    </script>

    After removing this code the issue is gone but now I can’t set a separate link for each image in the image carousel.

    Also when I click on the product carousel image the product link is not working. Like I have to click on the link button to open the product page.

    Hi @vlohar08,

    Thank you for sharing the details. Since you’re using custom code we can’t help you there actually.

    And regarding the product carousel link, currently it works on the button only. However, thank you for your idea. I’ll discuss this with my dev team and will implement this feature if we get such requests more.

    Thank you.

    Thread Starter Vishal Lohar

    (@vlohar08)

    Hey, can you please delete this and other Support questions as it’s appearing in search. I don’t want this to be visible in search when people search my brand on google.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Essential Addons Product carousal link error’ is closed to new replies.