Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #771180

    Like this HTML

    <input type=”text” onfocus=”if(this.value == ‘value’) { this.value = ”; }” value=”value” />

    #772466

    Hey 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,
    Yigit

    #772560

    Hello, 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’ );

    #774898

    Hi unicaweb,

    Did you make any changes it the class-form-generator.php that do what you need? If yes, what kind?

    Best regards,
    Victoria

    #774987

    No I have changed only class-form-generator.php in my child theme but do not work.

    #775264

    Hi,

    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, 7 months ago by Vinay.
    #775292

    Do not work

    #775294

    Hi!

    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, 7 months ago by Vinay.
    #775297

    Yes it’s work! Thanks!!!!

    #775308

    Hi,

    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

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Clear field value label in contact form "onfocus"’ is closed to new replies.