I included it in the child theme and now it works 🙂
Thanks a lot!
Hi Marcusig,
Thanks for the recommendation!
I am new to WordPress and I am using the insert php plugin and this is what I inserted on my page for the map but it does not work:
(it creates a second box below the map)
[bgmp-map]
[insert_php]
add_filter( ‘bgmp_clean-map-shortcode-arguments-return’, ‘overide_BGMP_arguments’, 100 );
function overide_BGMP_arguments( $params ) {
if( $params[‘mapWidth’] == ‘100’ ) {
$params[‘mapWidth’] = “100%”;
}
return $params;
}
[/insert_php]
Do you have any advice to apply your trick in this context ?
Thanks,