Reply To: Add map shortcode to a template's tabbed content … not working

Home Forums MapPress Support Add map shortcode to a template's tabbed content … not working Reply To: Add map shortcode to a template's tabbed content … not working

#12468
LakesMarketing
Participant

Hi Chris,

Thanks am testing out the ‘Post UI Tabs’ plugin which is the same, I think, as jQuery UI tabs.

 

The template author has come back and said the Tabs are using jQuery. Here is what they said:

 
I think redrawing it should do, but I’m not quite sure how to get the mapp variable too.
BTW, the tab code is in javascript/gdl-script.js file,
Around line 48, you’ll see

    // Tab
    var gdl_tab = jQuery(‘div.gdl-tab’);
    gdl_tab.find(‘.gdl-tab-title li a’).click(function(e){
        if( jQuery(this).hasClass(‘active’) ) return;

        var data_tab = jQuery(this).attr(‘data-tab’);
        var tab_title = jQuery(this).parents(‘ul.gdl-tab-title’);
        var tab_content = tab_title.siblings(‘ul.gdl-tab-content’);

        // tab title
        tab_title.find(‘a.active’).removeClass(‘active’);
        jQuery(this).addClass(‘active’);

        // tab content
        tab_content.children(‘li.active’).removeClass(‘active’).css(‘display’, ‘none’);
        tab_content.children(‘li[data-tab=”‘ + data_tab + ‘”]’).fadeIn().addClass(‘active’);

        e.preventDefault();
    });

Does that make any sense?

He says ‘redrawing it’ would do it? What does that mean? Will this make the map work?

 

Thanks