Title: Triggering Foo Gallery with a button
Last modified: May 6, 2020

---

# Triggering Foo Gallery with a button

 *  Resolved [junonedel](https://wordpress.org/support/users/junonedel/)
 * (@junonedel)
 * [6 years ago](https://wordpress.org/support/topic/triggering-foo-gallery-with-a-button/)
 * Hello,
    I’m wondering if there is a way to trigger a Foo Lightbox Gallery with
   a button? I want to have a button in the main page of the website that says “
   View gallery here”, and when the button is clicked, the lightbox would come up.
   Is there any chance I could achieve this through html coding or Elementor button
   resources?
 * In case that’s not a possibility, alternative suggetions are very welcome.
 * Thank you in advance.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ftriggering-foo-gallery-with-a-button%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [phillcoxon](https://wordpress.org/support/users/phillcoxon/)
 * (@phillcoxon)
 * [6 years ago](https://wordpress.org/support/topic/triggering-foo-gallery-with-a-button/#post-12833369)
 * Hi [@junonedel](https://wordpress.org/support/users/junonedel/),
 * Thanks for the question. I’m going to test this for you and will get back to 
   you in the next day or so with an update.
 *  [phillcoxon](https://wordpress.org/support/users/phillcoxon/)
 * (@phillcoxon)
 * [6 years ago](https://wordpress.org/support/topic/triggering-foo-gallery-with-a-button/#post-12849370)
 * Hi [@junonedel](https://wordpress.org/support/users/junonedel/),
 * Would you please try the following method for opening the FooGallery gallery 
   in FooBox lightbox Free? You’ll need to install the Free FooBox lightbox plugin.
 * Then refer to this page and the section titled: “Open a Hidden Gallery in FooBox”.
   Instead of a text link you can put the anchor link around an HTML button.
 * [https://fooplugins.com/documentation/foobox/getting-started/plain-text-links/](https://fooplugins.com/documentation/foobox/getting-started/plain-text-links/)
 * Another option is to try the same thing with an Elementor lightbox module. Use
   the gallery shortcode as the lightbox content and if all goes well it should 
   open the lightbox and display the gallery after executing the shortcode. Note
   that you may have to pass a height and width to the Elementor lightbox.
 * Let me know how you get on.
 *  [phillcoxon](https://wordpress.org/support/users/phillcoxon/)
 * (@phillcoxon)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/triggering-foo-gallery-with-a-button/#post-12895087)
 * Hi [@junonedel](https://wordpress.org/support/users/junonedel/),
 * I noticed that it’s been a while and we haven’t had a follow up response.
 * I’m going to assume that you have found a solution and and will mark this support
   request as resolved. 
 * Please feel free to open up a new support request if there is anything else we
   can help you with.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Triggering Foo Gallery with a button’ is closed to new replies.

 * ![](https://ps.w.org/foogallery/assets/icon-256x256.gif?rev=2602542)
 * [Photo Gallery by FooGallery : Responsive Image Gallery, Masonry Gallery & Carousel](https://wordpress.org/plugins/foogallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/foogallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/foogallery/)
 * [Active Topics](https://wordpress.org/support/plugin/foogallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/foogallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/foogallery/reviews/)

## Tags

 * [button](https://wordpress.org/support/topic-tag/button/)
 * [gallery](https://wordpress.org/support/topic-tag/gallery/)

 * 3 replies
 * 2 participants
 * Last reply from: [phillcoxon](https://wordpress.org/support/users/phillcoxon/)
 * Last activity: [5 years, 12 months ago](https://wordpress.org/support/topic/triggering-foo-gallery-with-a-button/#post-12895087)
 * Status: resolved