Forum Replies Created
Viewing 1 post (of 1 total)
	
- 
		AuthorPosts
- 
		
			
				
hey ! I found a solution just enough to change a file to solve this problem firstly “/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes” html-helper.class.php found in the folder and replace to following code found this code : $visibility = ""; if(!empty($subvalues['long']) || !empty($subvalues['lat']) ) $visibility = "av-visible";replace this code: 
 $visibility = "av-visible";
 the final version of the code:static function gmap_adress($element) { $defaults = array('address' => '', 'city' => '', 'country' => '', 'long' => '', 'lat' => ''); $subvalues = isset($element['shortcode_data']) ? $element['shortcode_data'] : array(); $values = array_merge($defaults, $subvalues); $visibility = "av-visible"; $output = ''; $output .= '<label class="av-gmap-field av-gmap-addres">'.__('Street address','avia_framework').' <input type="text" class="'.$element['class'].'" value="'.nl2br($values['address']).'" id="address" name="address"/></label>'; $output .= '<label class="av-gmap-field av-gmap-addres av_half av_first">'.__('City','avia_framework').' <input type="text" class="'.$element['class'].'" value="'.nl2br($values['city']).'" id="city" name="city"/></label>'; $output .= '<label class="av-gmap-field av-gmap-addres av_half">'.__('Country','avia_framework').' <input type="text" class="'.$element['class'].'" value="'.nl2br($values['country']).'" id="country" name="country"/></label>'; $class = 'button button-primary avia-js-google-coordinates av-google-fetch-button'.$element['class']; $output .= '<a href="#" class="'.$class.'" title="">'.__('Enter Address, then fetch coordinates','avia_framework').'</a>'; $output .= '<div class="av-gmap-coordinates">'; $output .= '<label class="av-gmap-field av_half av_first">'.__('Longitude','avia_framework').' <input type="text" class="'.$element['class'].'" value="'.nl2br($values['long']).'" id="long" name="long"/></label>'; $output .= '<label class="av-gmap-field av_half">'.__('Latitude','avia_framework').' <input type="text" class="'.$element['class'].'" value="'.nl2br($values['lat']).'" id="lat" name="lat"/></label>'; $output .= '</div>'; return $output; }and paste following code enfold analytics code area <!--Google Maps JavaScript API --> <script src="https://maps.googleapis.com/maps/api/js?key=XXX" type="text/javascript"></script>“XXX is your api key google is free 25.000 views your map” that is all automatic address detection code just does not work , but you can find it in the manual.. best regards. - 
		This reply was modified 9 years, 3 months ago by rdvnburton. 
 
- 
		This reply was modified 9 years, 3 months ago by 
- 
		AuthorPosts
Viewing 1 post (of 1 total)
	
