Title: Change KML defaults
Last modified: August 30, 2016

---

# Change KML defaults

 *  [wilcochris](https://wordpress.org/support/users/wilcochris/)
 * (@wilcochris)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/change-kml-defaults/)
 * Hi, I was looking through the source files but couldn’t find where the ‘src’ 
   was inserted.
 * I am looking to append the src attribute with a dedicated url.
 * Am I missing where this is located?
 * Cheers
 * [https://wordpress.org/plugins/wp-flexible-map/](https://wordpress.org/plugins/wp-flexible-map/)

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

 *  Plugin Author [webaware](https://wordpress.org/support/users/webaware/)
 * (@webaware)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/change-kml-defaults/#post-6644787)
 * G’day wilcochris,
 * [edited]
 * Your best bet is to use the `flexmap_shortcode_attrs` filter hook. It lets you
   alter the shortcode arguments from your own code, e.g. in a custom plugin or 
   your theme’s functions.php file. There’s a simple example of hooking this filter
   hook in the manual:
 * [http://flexible-map.webaware.net.au/manual/calling-templates-plugins/](http://flexible-map.webaware.net.au/manual/calling-templates-plugins/)
 * cheers,
    Ross
 *  Plugin Author [webaware](https://wordpress.org/support/users/webaware/)
 * (@webaware)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/change-kml-defaults/#post-6644789)
 * NB: I just edited the reply above, so please note the filter hook name: `flexmap_shortcode_attrs`
 * cheers,
    Ross
 *  Thread Starter [wilcochris](https://wordpress.org/support/users/wilcochris/)
 * (@wilcochris)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/change-kml-defaults/#post-6644857)
 * Thanks for that. I did have one more question.
 * When using the KML file, it appears that the info windows contain no text. When
   I load this in Google Maps or Google Earth, all the data is there.
 * Am I missing something?
 * Here is an example: [http://blog.chriswilcox.me.uk/2015/10/13/tuesday-13th/](http://blog.chriswilcox.me.uk/2015/10/13/tuesday-13th/)
   If you click on any of the icons or the path, it displays nothing.
 * Here it is in Google Maps [https://www.google.com/maps/d/edit?mid=zXALpNHbn0Gk.kNNZ24PVj4AY&usp=sharing](https://www.google.com/maps/d/edit?mid=zXALpNHbn0Gk.kNNZ24PVj4AY&usp=sharing)
 *  Plugin Author [webaware](https://wordpress.org/support/users/webaware/)
 * (@webaware)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/change-kml-defaults/#post-6644859)
 * Your stylesheet is setting the text colour to white. Add some CSS to set the 
   text colour for Google Maps infowindows, like this:
 *     ```
       .gm-style .gm-style-iw {
           color: #444;
       }
       ```
   
 * cheers,
    Ross

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

The topic ‘Change KML defaults’ is closed to new replies.

 * ![](https://ps.w.org/wp-flexible-map/assets/icon-256x256.png?rev=2590627)
 * [Flexible Map](https://wordpress.org/plugins/wp-flexible-map/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-flexible-map/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-flexible-map/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-flexible-map/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-flexible-map/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-flexible-map/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [webaware](https://wordpress.org/support/users/webaware/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/change-kml-defaults/#post-6644859)
 * Status: not resolved