• Resolved SteveHale

    (@stevehale)


    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

    (@flippercode0505)

    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 2 years, 9 months ago by Ashok Singh.

    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.