-
AuthorPosts
-
April 3, 2017 at 3:30 pm #771180
Like this HTML
<input type=”text” onfocus=”if(this.value == ‘value’) { this.value = ”; }” value=”value” />
April 5, 2017 at 12:34 pm #772466Hey unicaweb,
Please use a child theme – http://kriesi.at/documentation/enfold/using-a-child-theme/ and copy unmodified enfold/framework/php/class-form-generator.php file and paste it inside enfold-child folder and find following at the top and remove it (please do not remove PHP opening tag)
if ( ! defined( 'AVIA_FW' ) ) exit( 'No direct script access allowed' );
and then add following code to Functions.php file of your child theme
require( 'class-form-generator.php' );
Then modify the file to apply your changes :)
Best regards,
YigitApril 5, 2017 at 2:23 pm #772560Hello, I follow your instructions but may be do not work http://www.myunica.it/richiesta-preventivo/
1) I have copy this file from enfold/framework/php/class-form-generator.php to my child folder and disable only this raw
/*if ( ! defined( ‘AVIA_FW’ ) ) exit( ‘No direct script access allowed’ );*/
2) I have added on top function.php
require( ‘class-form-generator.php’ );
April 9, 2017 at 12:12 pm #774898Hi unicaweb,
Did you make any changes it the class-form-generator.php that do what you need? If yes, what kind?
Best regards,
VictoriaApril 9, 2017 at 3:34 pm #774987No I have changed only class-form-generator.php in my child theme but do not work.
April 10, 2017 at 6:06 am #775264Hi,
Please try adding this code to the Quick CSS section under Enfold > General Styling or to your child themes style.css file:
[placeholder]:focus::-webkit-input-placeholder { transition: opacity 0.15s 0.15s ease; opacity: 0; }
Best regards,
Vinay- This reply was modified 7 years, 8 months ago by Vinay.
April 10, 2017 at 7:27 am #775292Do not work
April 10, 2017 at 7:35 am #775294Hi!
I have tested this code on my installation and it should work for you too :)
Please deactivate any caching plugin and purge browser cache to see the changes after adding the code in Quick CSS.
If that does not help please post your login details in private content so we can take a look at it.
Regards,
Vinay- This reply was modified 7 years, 8 months ago by Vinay.
April 10, 2017 at 7:39 am #775297Yes it’s work! Thanks!!!!
April 10, 2017 at 8:16 am #775308Hi,
Glad we could help!
Please take a moment to review our theme and show your support https://themeforest.net/downloads
To know more about enfold features please check – http://kriesi.at/documentation/enfold/
Thank you for using Enfold :)Best regards,
Vinay -
AuthorPosts
- The topic ‘Clear field value label in contact form "onfocus"’ is closed to new replies.