Site logo

[Resolved] Shortcode below woocommerce gallery

Home Forums Support [Resolved] Shortcode below woocommerce gallery

Home Forums Support Shortcode below woocommerce gallery

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

    I am looking to add a shortcode right below the woocommerce product gallery. In my case, the shortcode would display a button for a wishlist.

    Here’s an example using of what I am talking about for a product without a gallery.
    https://www.sandandsteelfitness.com/product/welcome-pack/

    I was wondering if know what code I could WP-Snippets that would allow me to add this shortcode to products that include a gallery.

    #2491897
    Leo
    Staff
    Customer Support

    Hi Paul,

    You would need to use a hook from WooCommerce single product template – this isn’t something GP can control.
    Please refer to the visual guide here: https://www.businessbloomer.com/woocommerce-visual-hook-guide-single-product-page/

    A hook element can be used to insert the shortcode:
    https://docs.generatepress.com/article/hooks-element-overview/

    #2497847
    Paul

    It is odd that Woocommerce doesn’t provide a hook after the product gallery. It would be a great place to but a wishlist button. Creates a big blank space on the left side for some products. Thanks for the info.

    #2497868
    Leo
    Staff
    Customer Support

    No problem 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.