Title: Map in tab, click function
Last modified: October 9, 2017

---

# Map in tab, click function

 *  Resolved [matpakka](https://wordpress.org/support/users/matpakka/)
 * (@matpakka)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/map-in-tab-click-function/)
 * Hello,
    I am experiencing a similar problem as the one solved in [this](https://wordpress.org/support/topic/problem-map-is-gray-background/)
   topic. I have placed the google-maps-builder shortcode inside a tab, so I need
   help to write a function that re-trigger the JS when that tab is clicked. My 
   page is not online at the moment, but is similar to [this](http://themecanon.net/?theme=VenueX)
   demo page.
 * The tab is the same as the front page tab “Getting here”, the map at at demo 
   page is generated using iframe, while mine is using google-maps-builder shortcode.
 * There is no way to add a unique class name to the LI from the themes page builder.
   This is the code that needs to be targeted:
 *     ```
       <ul class="block-tabs">
       <li class=""><h3><i class="fa fa-microphone"></i> Concert Info </h3>January 02, warm up act starts 7:00pm</li>
       <li><h3><i class="fa fa-ticket"></i> Tickets </h3>Tickets at the door, from $35 each</li>
       <li class="active"><h3><i class="fa fa-map-marker"></i> Getting Here </h3>305 Laneway Drive, Riverton, 40567</li>
       </ul>
       ```
   
    -  This topic was modified 8 years, 7 months ago by [matpakka](https://wordpress.org/support/users/matpakka/).
    -  This topic was modified 8 years, 7 months ago by [matpakka](https://wordpress.org/support/users/matpakka/).
    -  This topic was modified 8 years, 7 months ago by [matpakka](https://wordpress.org/support/users/matpakka/).

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

 *  Plugin Author [Matt Cromwell](https://wordpress.org/support/users/webdevmattcrom/)
 * (@webdevmattcrom)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/map-in-tab-click-function/#post-9570787)
 * Do you have your map within the tab somewhere publicly so I can see it live? 
   That’s the best way to test the JS snippet we need to make this happen.
 *  Thread Starter [matpakka](https://wordpress.org/support/users/matpakka/)
 * (@matpakka)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/map-in-tab-click-function/#post-9580451)
 * The page is in maintenance mode, but I can send you the url and login credentials
   somewhere?
 *  Thread Starter [matpakka](https://wordpress.org/support/users/matpakka/)
 * (@matpakka)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/map-in-tab-click-function/#post-9581630)
 * [Her](https://tinyurl.com/ybgq4djm) is the URL
    -  This reply was modified 8 years, 7 months ago by [matpakka](https://wordpress.org/support/users/matpakka/).
    -  This reply was modified 8 years, 7 months ago by [matpakka](https://wordpress.org/support/users/matpakka/).
    -  This reply was modified 8 years, 7 months ago by [matpakka](https://wordpress.org/support/users/matpakka/).
 *  Thread Starter [matpakka](https://wordpress.org/support/users/matpakka/)
 * (@matpakka)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/map-in-tab-click-function/#post-9584121)
 * I manage to fix this my self.
 *  Plugin Author [Matt Cromwell](https://wordpress.org/support/users/webdevmattcrom/)
 * (@webdevmattcrom)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/map-in-tab-click-function/#post-9585861)
 * OK, thanks for the update, glad to hear you got it worked out.

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

The topic ‘Map in tab, click function’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/google-maps-builder_f9f9f9.svg)
 * [Maps Builder - Google Maps Plugin](https://wordpress.org/plugins/google-maps-builder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-maps-builder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-maps-builder/)
 * [Active Topics](https://wordpress.org/support/plugin/google-maps-builder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-maps-builder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-maps-builder/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Matt Cromwell](https://wordpress.org/support/users/webdevmattcrom/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/map-in-tab-click-function/#post-9585861)
 * Status: resolved