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
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
Hi Vinay,
Thanks for your reply.
Unfortunately this doesn’t work with fields that only have inline labels.
Kind regards,
Matthijs
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
Hi Vinay,
Sure!
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
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.
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
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
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
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