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

Is there a way to add a button to a video in woo product grid?

Discussion in 'Free Divi Community Forum' started by ArnauP, Dec 17, 2023.

  1. ArnauP

    ArnauP New Member

    Hi,

    I would like to add a button in woocomerce product grids (not in product gallery) that would be "watch video" and allows to watch a video in a pop up window. Is there any plugin that allows that?

    I attach image
     

    Attached Files:

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

    Divi.Help Administrator
    Staff Member

    Not sure about plugins. But what I can think of is to use custom code in child theme functions.php, using this hook: woocommerce_after_shop_loop_item

    Example:
    Code:
    Log In or Sign Up to view this code.
    The above code will inject 'Your Text' below all your loop products. To achieve what you want, you will need custom field for the Woocommerce for the video link & use the above code to inject the 'watch video' button with the custom field link.

    You might want to search stackoverflow for sample code regarding: woocommerce_after_shop_loop_item