How do I set a custom pin
-
I’m having trouble getting a custom placemarker to set. can you please example how to set it up. and where exactly doing you get the ID
i saw the code on the install page but after adding it to my theme’s functions.php file nothing happens. I got the placemarkID from the placemarker post url /wp-admin/post.php?post=56&action=edit is that the correct ID
function setBGMPDefaultIconByID( $iconURL, $placemarkID ) { if( $placemarkID == 56 ) $iconURL = get_bloginfo( 'stylesheet_directory' ) . '/images/new_pin.png'; return $iconURL; } add_filter( 'bgmp_default-icon', 'setBGMPDefaultIcon', 10, 2 );
- The topic ‘How do I set a custom pin’ is closed to new replies.