Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #650433

    Hi Kriesi,

    I’m trying to hide the asterix from inline labels in form fields that are required.
    I tried to add a function to the functions.php in my child theme, but without success.
    Can you help me out?

    Kind regard,
    Matthijs

    • This topic was modified 7 years, 9 months ago by mdekievit.
    #650441

    Hey mdekievit,

    Please try adding this code to the Quick CSS section under Enfold > General Styling or to your child themes style.css file:

    
    .required {
    	display: none;	
    }
    

    Best regards,
    Vinay

    #650500

    Hi Vinay,

    Thanks for your reply.
    Unfortunately this doesn’t work with fields that only have inline labels.

    Kind regards,
    Matthijs

    #650503

    Hi,

    Would you mind providing a precise link to your site, showing the elements in question? We need to be able to inspect them in order to help :)

    Best regards,
    Vinay

    #653236

    Hi Vinay,

    Sure!

    #654402

    Hi,

    Please go to Enfold/framework/php/class-form-generator.php file via FTP and find

    $extra = "*";

    and change it to following

    $extra = "";

    Best regards,
    Yigit

    #656942

    Hi Yigit,

    Thanks! That works.
    I Tried to add the alteration to my child’s functions.php but that didn’t work.
    I’ll check the code.

    #657033

    Hi,

    Please copy unmodified file and paste it inside enfold-child folder and apply your changes and find following line at the top

    <?php  if (  ! defined( 'AVIA_FW' ) ) exit( 'No direct script access allowed' );

    and change it to

    <?php 

    then add following line to functions.php file of your child theme

    require( 'class-form-generator.php' );

    Best regards,
    Yigit

    #657154

    Hi Yigit,

    Thanks for your reply.
    When I deploy this I receive the message: No direct script access allowed.
    How can I bypass this message? Sorry for these questions. I know it’s far beyond basic the adaptations…

    Best regards,
    Matthijs

    #657170

    Hey!

    That should not be the case if you followed the instructions in my previous reply. If you have and that still does not work, please post FTP logins here privately so we can look into it

    Cheers!
    Yigit

    #657177

    My bad!

    I checked and edited the wrong file.
    Works like a charm! Now I can update without a worry. Thanks for your PHP lesson :-)

    Best regards,
    Matthijs

    #657210

    Hi!

    No worries at all, glad if i could help :)
    Let us know if you have any other questions or issues!

    Best regards,
    Yigit

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Remove asterix (*) from form with inline labels’ is closed to new replies.