so where in your child theme did you put the revised templates?
Yes. I copied bbpress’s template to my child theme, and not I put my original template but I add codes to bbpress’s templates.
For example,
before “form-user-register.php”
<input type="text" name="user_login" value="<?php bbp_sanitize_val( 'user_login' ); ?>" size="20" id="user_login" maxlength="100" autocomplete="off" />
after “form-user-register.php”
<input type="text" name="user_login" value="<?php bbp_sanitize_val( 'user_login' ); ?>" size="20" id="user_login" maxlength="100" autocomplete="off" placeholder="half-width characters" />
so are these templates in a folder called ‘bbpress’ within your child theme?
Yes. I made ‘bbpress’ directory by following your manual.
I looked at this
I’m sorry for my poor English.
Thanks.
ok, so that file should be :
wp-content/themes/%your-theme-name%/bbpress/form-user-register.php
where %your-theme-name% is the name of your theme
Yes, that is there.
Why my form-user-register.php is not update?
Also, I tried to directly add code to form-user-register.php in bbpress (not child theme’s bbpress), the result was not changed.
can you post the entire user-register.php file here please
<?php
/**
* User Registration Form
*
* @package bbPress
* @subpackage Theme
*/
// Exit if accessed directly
defined( 'ABSPATH' ) || exit;
?>
<form method="post" action="<?php bbp_wp_login_action( array( 'context' => 'login_post' ) ); ?>" class="bbp-login-form">
<fieldset class="bbp-form">
<legend><?php esc_html_e( 'Create an Account', 'bbpress' ); ?></legend>
<?php do_action( 'bbp_template_before_register_fields' ); ?>
<div class="bbp-template-notice">
<ul>
<li><?php esc_html_e( 'Your username must be unique, and cannot be changed later.', 'bbpress' ); ?></li>
<li><?php esc_html_e( 'We use your email address to email you a secure password and verify your account.', 'bbpress' ); ?></li>
</ul>
</div>
<div class="bbp-username">
<label for="user_login"><?php esc_html_e( 'Username', 'bbpress' ); ?>: </label>
<input type="text" name="user_login" value="<?php bbp_sanitize_val( 'user_login' ); ?>" size="20" id="user_login" maxlength="100" autocomplete="off" placeholder="半角英数字" />
</div>
<div class="bbp-email">
<label for="user_email">大学のメールアドレス</label>
<input type="text" name="user_email" value="<?php bbp_sanitize_val( 'user_email' ); ?>" size="20" id="user_email" maxlength="100" autocomplete="off" />
</div>
<?php do_action( 'register_form' ); ?>
<div class="bbp-submit-wrapper">
<button type="submit" name="user-submit" class="button submit user-submit"><?php esc_html_e( 'Register', 'bbpress' ); ?></button>
<?php bbp_user_register_fields(); ?>
</div>
<?php do_action( 'bbp_template_after_register_fields' ); ?>
</fieldset>
</form>
is this okay?
what other bbpress related plugins are you using ?
I’m using
bbpress forum utility pack
GD bbpress Attachments
WP ULike
EWWW Image Optimizer
Akismet Anti-Spam
bbpress forum utility pack has in it
\bbp-jp-utility\templates\form-custom-signup.php
which is a replacement for form-user-register, and takes over, so your version is not used.
you should ask the author about modifying this template, he may have a hook you can use, but if you do end up modifying the plugin template, you will need to repeat this everytime that plugin is updated.
Thank you so much!!!!!!!!!