1. PROMO Subscribe our All Access Pass @ 75% OFF & access all our 16+ premium Divi extensions: Divi Block Pro, Carousel Toolkit, etc.LEARN MORE
Dismiss Notice
NEW Divi.Help Pro Carousel AI Toolkit - Magically turn your Divi design into carousel, simply by using our online toolkit. No plugins needed. Now it works with Divi 5 as well!Try our carousel AI toolkit
BEST Divi Block - A revolutionary drag & drop tool to easily mix & match 960+ premade blocks (Light & Dark) to kick start your Divi site design. Special module designs are included as well. Also newly added AI generator & color. Now it works with Divi 5 as well!
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

Video link not working on mobile view

Discussion in 'Free Divi Community Forum' started by Zul Azhar, Jun 24, 2021.

  1. Zul Azhar

    Zul Azhar New Member

    Hi guys,

    I’m new to Divi Builder. The website that I’m working on has a problem;

    There are a couple of videos for each ‘a’ tag. On desktop view, everytime user click the ‘a’ tags, it’ll change to new video. But on mobile view, when user click the same tags, the website is loaded and bring to the top of the page.

    How can I fix this?
     

    Attached Files:

    1. PRO MEMBER PERKS Divi Block Pro - Premade team carousel design for your Divi site without using any plugins:View Demo
  2. Divi.Help

    Divi.Help Administrator
    Staff Member

    Kindly share your URL.
     
  3. Zul Azhar

    Zul Azhar New Member

    This is the url : https://www.redsbaby.com.au/redsbaby-experience

    if you go down to the list of videos; Jive - Metro - Skip, using Mobile View, when you click one of the list, it’ll bring you to the top, not change to new video as uploaded to Video Slider settings
     
    1. PRO MEMBER PERKS Divi.Help Layout AI Generator - Try the power of AI to generate a custom Divi layout for you:Try Now
  4. Divi.Help

    Divi.Help Administrator
    Staff Member

    It seems like custom coding for that functionaility.

    For your links, you may try to set the href to be href="#" & see if it helps.

    Ultimately, I believe for your custom coding, it should've added preventDefault for the link clicking.
     
  5. Zul Azhar

    Zul Azhar New Member

    Thank you for that. Should I add the href=“#” directly inside Divi Builder or to the custom code?

    Should I add the preventDefault to prevent it from loading to the top of the website?
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade promo bar / notification bar with close button for your Divi site without using any plugins:View Demo
  6. Divi.Help

    Divi.Help Administrator
    Staff Member

    Not sure if this will work, but you should add it in the text module that contains the link.
    Yup. Not sure what's your custom code, but here's a sample of preventDefault: https://www.w3schools.com/jquery/event_preventdefault.asp