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

No ability to change form Sub Label text in weForms #227

Open
SitesByYogi opened this issue May 13, 2024 · 0 comments
Open

No ability to change form Sub Label text in weForms #227

SitesByYogi opened this issue May 13, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@SitesByYogi
Copy link

In this case user wants to change the sub labels for "First" and "last" name to German from the form editor. It would make since in this case for weForms to have the ability to change the text label.

https://snipboard.io/iCWOyJ.jpg

As a workaround can just use placeholder text and hide the sub labels or add something like this to the functions.php file or a code snippets plugin:

function weforms_change_strings( $translations, $text, $domain ) {
	if ( 'weforms' === $domain ) {
		if ( 'First' === $text ) {
			return 'custom first';
		}
		if ( 'Last' === $text ) {
			return 'custom last';
		}
    
	}
	return $translations;
}
add_filter( 'gettext', 'weforms_change_strings', 10, 3 );

@SitesByYogi SitesByYogi added the enhancement New feature or request label May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant