Title: Map Border
Last modified: February 23, 2022

---

# Map Border

 *  Resolved [SteveHale](https://wordpress.org/support/users/stevehale/)
 * (@stevehale)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/map-border-2/)
 * Hi
 * I have tried adding this code to my site (in Code Snippets):
 *     ```
       add_filter(‘wpgmp_map_output’,’add_additional_style’,10,4);
       function add_additional_style( $output, $map_div, $listing_div, $map ){
   
       $output .= ‘<style>.wpgmp_map_parent{border: 5px solid orange;}</style>’;
       return $output;
       }
       ```
   
 * You suggested this code to another user 10 months ago.
 * Using the above code I get this error on the site:
 * The code snippet you are trying to save produced a fatal error on line 4:
    syntax
   error, unexpected ‘>’
 * Please advise
 * Steve B

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

 *  Plugin Support [Ashok Singh](https://wordpress.org/support/users/flippercode0505/)
 * (@flippercode0505)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/map-border-2/#post-15394322)
 * Hello,
 * Thank you for connecting with us.
    We have checked the filter and we found that
   you are using backtick ` you need to start and close by using single quotes ‘
   or double quotes “. We are providing the correct filter code to you, please try
   this:
 * add_filter(“wpgmp_map_output”,”add_additional_style”,10,4);
    function add_additional_style(
   $output, $map_div, $listing_div, $map ){ $output .= “<style>.wpgmp_map_parent{
   border: 5px solid orange;}</style>”; return $output; }
 * Please let us know it works for you or not.
 * Thanks
    -  This reply was modified 4 years, 3 months ago by [Ashok Singh](https://wordpress.org/support/users/flippercode0505/).
 *  Plugin Author [Flipper Code – WordPress Development Company](https://wordpress.org/support/users/flippercode/)
 * (@flippercode)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/map-border-2/#post-15421286)
 * Hello,
 * Hopefully, we have resolved your issue. Please reopen it if you still have any
   issues.
 * Thanks

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

The topic ‘Map Border’ is closed to new replies.

 * ![](https://ps.w.org/wp-google-map-plugin/assets/icon-256x256.gif?rev=3111000)
 * [WP Maps - Google Maps,OpenStreetMap,Mapbox,Store Locator,Listing,Directory & Filters](https://wordpress.org/plugins/wp-google-map-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-google-map-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-google-map-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-google-map-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-google-map-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-google-map-plugin/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [Flipper Code – WordPress Development Company](https://wordpress.org/support/users/flippercode/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/map-border-2/#post-15421286)
 * Status: resolved