cmb_field_map icon indicating copy to clipboard operation
cmb_field_map copied to clipboard

Idea: Change location placeholder

Open jakecobley opened this issue 10 years ago • 2 comments
trafficstars

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.

jakecobley avatar Oct 29 '15 17:10 jakecobley

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

mustardBees avatar Oct 29 '15 17:10 mustardBees

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?

eriktelepovsky avatar Oct 25 '16 10:10 eriktelepovsky