mustardBees/cmb_field_map

Idea: Change location placeholder

Opened this issue · 2 comments

Change the placeholder for 'location' from 'enter a location' to something a little more detailed. i.e. 'enter an address / postcode / lat long'.

I had no idea what type of format this was expecting.

Not a bad idea. I'll add the option.

Any update with this?

It can be achieved by adding this at line 29 in file cmb-field-map.php:

'placeholder' => __( 'Your location placeholder', 'textdomain' ),

But it would be nice if it is configurable. When I change attributes['placeholder'] option directly in my CMB2 field definition, the same placeholder is used for latitude and longitude inputs as well and it is not desired behaviour.

Any ideas how to solve that?