How about this code?
type="checkbox" ⇒ type="checkbox"checked
You can customize the form-reply.php and form-topic.php .
<input name="bbp_topic_subscription" id="bbp_topic_subscription" type="checkbox"checked value="bbp_subscribe"<?php bbp_form_topic_subscribed(); ?> />
You can change the code simply and put both files in your child theme’s bbpress folder.
Could you explain me better how to do that I don’t want to damage my site? 🙂
Thank you
bbp style pack
once activated go to
dashboard>settings>bbp style pack>Topic/Reply Form item 6
You can customze two file form-reply.php and form-topic.php .
bbress> templates > default > form-topic.php at line 170
<input name="bbp_topic_subscription" id="bbp_topic_subscription" type="checkbox" value="bbp_subscribe" <?php bbp_form_topic_subscribed(); ?> />
↓
<input name="bbp_topic_subscription" id="bbp_topic_subscription" type="checkbox"checked value="bbp_subscribe" <?php bbp_form_topic_subscribed(); ?> />
bbress> templates > default > form-reply.php at line 104
<input name="bbp_topic_subscription" id="bbp_topic_subscription" type="checkbox" value="bbp_subscribe"<?php bbp_form_topic_subscribed(); ?> />
↓
<input name="bbp_topic_subscription" id="bbp_topic_subscription" type="checkbox"checked value="bbp_subscribe"<?php bbp_form_topic_subscribed(); ?> />
Then the topic and reply are automatically subscribed simply.
But the participant can uncheck the checkbox about subscription by himself.
If you do not want participant uncheck the checkbox, you can delete checkbox by CSS.
Put these customized files in your child theme’s folder-bbpress.