Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Descriptions not showing (Pro)

$
0
0

Replies: 0

Descriptions don’t show up in the InfoWindow when clicking a marker.

This happens because the field is called “description” in the generated XML files but core.js looks for “desc“.

Changing:

Line 1654:

var wpmgza_desc  = jQuery(this).find('desc').text();
var wpgmza_orig_desc = wpmgza_desc;
if (wpmgza_desc !== "") {
    var wpmgza_desc = '<p class="wpgmza_infowindow_description">'+jQuery(this).find('desc').text()+'</p>';
}

to:

var wpmgza_desc  = jQuery(this).find('description').text();
var wpgmza_orig_desc = wpmgza_desc;
if (wpmgza_desc !== "") {
    var wpmgza_desc = '<p class="wpgmza_infowindow_description">'+jQuery(this).find('description').text()+'</p>';
}

resolves the issue for me.


Viewing all articles
Browse latest Browse all 59525

Trending Articles