Erasing "These fields are required" in the registration page and the profile.
Just the text that is displayed? The fields would still be required and go through validation? Just edit the template file register.php and eliminate that line:
./bb-templates/kakumei/register.php line 65
<p class="required-message"><?php _e('These items are <span class="required">required</span>.') ?></p>
You could also hide the text with some jQuery, but I think it’s easiest to just remove the text from your template file.
Are you familar with the “bbpress-forum” template. It doesnt have a specific register.php. Maybe thats why I am having such a hard time with this “what should be an easy” fix.
Copy the register.php from the
bb-templates/kakumei/folder into your theme folder. If you don’t have a theme file present in your theme, the file from the default theme is used. Since that’s happening now, go ahead and copy the register.php into your theme folder and make the modifications there.
Thanks Chris, super helpful.
Does this work with any php file?
Any theme file, yes. If the file is not present in your theme, the missing file from the default theme is used instead.
I was not aware. Appreciate it.
So for the profile.php, I would have to create profile-base.php, profile-edit.php, and profile.php to the templates files?
You can copy any file that is not in your template folder, directly from the kakumei folder. Then modify the ones you copied. It’s a bad idea to modify the files in the kakumei folder, and to get the functionality you want, you are probably going to be editing template files. So make copies of any you do not have in your theme folder already.
- You must be logged in to reply to this topic.