HowTo: Google Maps in Thesis Multimedia box

by Rob on February 23, 2011

I needed to add a google map to a client’s Thesis-based WordPress site. It looks simple, but as I’m not a Thesis developer, it took a bit to figure out how to do it. So for my reference and yours, here’s how.

1. Install Pronamic Google Maps plugin and activate
2. On the page where you want the map, override the default multimedia box by checking “access the multimedia box hook, thesis_hook_multimedia_box, on this post”
3. Put this in the custom_functions.php file (Under Custom File Editor):

add_action('thesis_hook_multimedia_box','google_map');
function google_map() {
pronamic_google_maps(array('width' => 425 ,'height' => 300));
}

Voila. Map. Of course, you’ll want to put your location in, I used itouchmap to figure out my location.

Leave a Comment

Previous post:

Next post: