Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idea: Change location placeholder #31

Open
jakecobley opened this issue Oct 29, 2015 · 2 comments
Open

Idea: Change location placeholder #31

jakecobley opened this issue Oct 29, 2015 · 2 comments

Comments

@jakecobley
Copy link

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.

@mustardBees
Copy link
Owner

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

@eriktelepovsky
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants