Title: Using plugin with a theme
Last modified: July 10, 2021

---

# Using plugin with a theme

 *  Resolved [drusixtynine](https://wordpress.org/support/users/drusixtynine/)
 * (@drusixtynine)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/using-plugin-with-a-theme-2/)
 * Hi there,
    I installed your plugin with a theme I bought and that theme is not
   using wordpress gallery block. You can see it here [https://siamfonderie.tn/](https://siamfonderie.tn/)
   at the bottom of the page, all links point to the respective media. Do you know
   why it doesn’t work? Thanks Aziz
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fusing-plugin-with-a-theme-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Johannes Kinast](https://wordpress.org/support/users/goaroundagain/)
 * (@goaroundagain)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/using-plugin-with-a-theme-2/#post-14650435)
 * Hi [@drusixtynine](https://wordpress.org/support/users/drusixtynine/),
 * This Plugin only works with Blocks. But you can fork the plugin (it’s pretty 
   simple) and change the selector for the lightbox to `.portfolio-list` here: [https://github.com/goaround/gallery-block-lightbox/blob/e8d5a99b4dd6cf3a556801c34dda71ccaa8ff359/gallery-block-lightbox.php#L14](https://github.com/goaround/gallery-block-lightbox/blob/e8d5a99b4dd6cf3a556801c34dda71ccaa8ff359/gallery-block-lightbox.php#L14)
 * Addinialy you have to change `wp_register_script` to `wp_enqueue_script` and `
   wp_register_style` to `wp_enqueue_style` to load the script & style on every 
   page.
 *  Thread Starter [drusixtynine](https://wordpress.org/support/users/drusixtynine/)
 * (@drusixtynine)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/using-plugin-with-a-theme-2/#post-14767296)
 * Hey,
    Thank you for your reply I never managed to do it as it looks to be a temporary
   solution until the next update, right? Aziz
 *  Plugin Author [Johannes Kinast](https://wordpress.org/support/users/goaroundagain/)
 * (@goaroundagain)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/using-plugin-with-a-theme-2/#post-14767712)
 * Hi [@drusixtynine](https://wordpress.org/support/users/drusixtynine/),
 * the Plugin works only with the default Gallery Block (and some other Blocks).
   Your Gallery is part of your Theme and I can‘t support every theme. You can do
   it yourself but it will not be part of this Plugin.

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

The topic ‘Using plugin with a theme’ is closed to new replies.

 * ![](https://ps.w.org/gallery-block-lightbox/assets/icon.svg?rev=2788519)
 * [Lightbox for Gallery & Image Block](https://wordpress.org/plugins/gallery-block-lightbox/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gallery-block-lightbox/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gallery-block-lightbox/)
 * [Active Topics](https://wordpress.org/support/plugin/gallery-block-lightbox/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gallery-block-lightbox/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gallery-block-lightbox/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [Johannes Kinast](https://wordpress.org/support/users/goaroundagain/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/using-plugin-with-a-theme-2/#post-14767712)
 * Status: resolved