Pages: 1
Hi there
I have enable comments on my Piwigo site, but when I do that 2 fields shows up; the email field and the commentary field
Is it possible to remove the email field and just have the commentary field and the submit button?
Thanks
Offline
Hi Dal,
You can disable the mandatory email for comments in Configuration>Options>Comments
In this tab you have the option to deselct "Email address is mandatory"
Hope this helps
Offline
Hi, thanks for answering.
Yes, I know you can make the email not mandatory, but I was looking for a way to remove the email field entirely from view.
Surely there must be a way?
Thanks again.
Offline
What theme are you using ? It could possibly be linked
In modus (I also tested Bootstrap darkroom) if I remove the mandatory email adress then it no longer shows up in the gallery. By unticking everything in the comments settings (appart from activate comments) There is just the box for the comment left over, as you can see here:
https://hannah1.piwigo.com/picture?/66/ … y/7-album2
Another option would be to hide it using CSS, but the comments settings should get you what you need
Offline
Thanks, but it didn't help
I have tried both modus and Bootstrap darkroom.
What is the way to do it in PHP then?
Thanks again
Offline
A small update.
This seems to work for my webmaster user, but not for "users"
Offline
With CSS in the LocalFilesEditor you can use this:
#addComment label[for=email],
#addComment #email{
display:none;
}
The field still technically exists but is hidden, and the form should submit as long as the email address is not mandatory
Offline
Pages: 1