Title: RGG with UI Tabs
Last modified: August 21, 2016

---

# RGG with UI Tabs

 *  [venuscreats](https://wordpress.org/support/users/venuscreats/)
 * (@venuscreats)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/responsive-gallery-grid/)
 * Hello,
 * I love this plugin.but I added this plugin with using jQuery UI tabs. I added
   two galleries to two tabs and first tab’s gallery is showing but when click on
   2nd tab gallery is now showing.
 * can you help me to resolve that?
 * thanks a lot.
 * [http://wordpress.org/plugins/responsive-gallery-grid/](http://wordpress.org/plugins/responsive-gallery-grid/)

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

 *  Plugin Author [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * (@jules-colle)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/responsive-gallery-grid/#post-4537690)
 * That’s because the resize function will not be called. You should add an event
   handler to trigger the code below when you change tabs:
 * `jQuery(window).resize();`
 *  [mr.jonathanpotter](https://wordpress.org/support/users/mrjonathanpotter/)
 * (@mrjonathanpotter)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/responsive-gallery-grid/#post-4537692)
 * I know this is super lame, but I’m a real novice with jQuery and I’ve been trying
   to bind the resize event to the activate function on the tabs for about an hour
   now and can’t seem to figure it out. Any other hints you might provide? I assume
   the grid arranges itself based on the resize function – which makes sense, but
   I really can’t figure out how to bind that to an activate event on changing tabs.
 *     ```
       <script>
       $(function() {
       $( "#tabs" ).tabs(
       {
       activate: function( resize, newTab ) {}
       }
       );
       });
       </script>
       ```
   
 * That is as far as I got, and I am pretty close to 100% sure I’m way off base.
   Any assistance would be much appreciated – and I echo everyone else, this plugin
   is fantastic!

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

The topic ‘RGG with UI Tabs’ is closed to new replies.

 * ![](https://ps.w.org/responsive-gallery-grid/assets/icon-256x256.png?rev=2072597)
 * [Responsive Gallery Grid](https://wordpress.org/plugins/responsive-gallery-grid/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/responsive-gallery-grid/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/responsive-gallery-grid/)
 * [Active Topics](https://wordpress.org/support/plugin/responsive-gallery-grid/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/responsive-gallery-grid/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/responsive-gallery-grid/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [mr.jonathanpotter](https://wordpress.org/support/users/mrjonathanpotter/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/responsive-gallery-grid/#post-4537692)
 * Status: not resolved