- This topic has 3 replies, 2 voices, and was last updated 7 years, 9 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
WordPress Membership Plugin
Simple Membership Plugin › Forums › Simple Membership Plugin › Textareas on forms display with an indent on first line
Tagged: first line indent in textarea
Hi
This has been going on for some months now, and is driving me and my users insane with annoyance. I use two custom fields – textareas – that people can write things in. Even though the user starts typing at left edge, the saved result always shows the entry indented to the right, sometimes several indents to the right! Also, the formatting in the rest of the textarea gets distorted.
I have tried adding
sanitize_textarea_field( string $str )
to the class.swpm-form.php file, but this just wipes out the entire content of the textarea when I save.
Is there no way to stop this happening?
Thanks
SP
Hi, are you using the Form Builder addon by any chance? If you are what version do you have installed in your site?
Regards
Hi mbr
No, I am not using Form Builder. Also I am using the latest version of WordPress and the latest of SWPM.
In my site database I have made a few extra columns in my wp_swpm_members_tbl – of type varchar(255) – that match each textarea I have added to the Add, Edit, and the equivalent Admin forms. I have tried adding:
trim
to the code that outputs the long text, but even that does not change anything …
Many thanks,
SP
Hi, thank you for reporting back with more information. Can you please carry out the following troubleshooting steps. I just want to confirm that there is no conflict with a plugin or your theme.
Let me know what happens.
Thank you