-
AuthorPosts
-
June 19, 2016 at 5:13 pm #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 8 years, 5 months ago by mdekievit.
June 19, 2016 at 5:38 pm #650441Hey 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,
VinayJune 19, 2016 at 9:39 pm #650500Hi Vinay,
Thanks for your reply.
Unfortunately this doesn’t work with fields that only have inline labels.Kind regards,
MatthijsJune 19, 2016 at 9:54 pm #650503Hi,
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,
VinayJune 25, 2016 at 6:22 am #653236Hi Vinay,
Sure!
June 28, 2016 at 7:39 pm #654402Hi,
Please go to Enfold/framework/php/class-form-generator.php file via FTP and find
$extra = "*";
and change it to following
$extra = "";
Best regards,
YigitJuly 5, 2016 at 11:13 am #656942Hi 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.July 5, 2016 at 1:32 pm #657033Hi,
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,
YigitJuly 5, 2016 at 4:49 pm #657154Hi 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,
MatthijsJuly 5, 2016 at 5:29 pm #657170Hey!
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!
YigitJuly 5, 2016 at 5:38 pm #657177My 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,
MatthijsJuly 5, 2016 at 6:59 pm #657210 -
AuthorPosts
- The topic ‘Remove asterix (*) from form with inline labels’ is closed to new replies.