Home › Forums › Support › Disclaimer message below Leave a Comment This topic has 15 replies, 2 voices, and was last updated 3 years, 4 months ago by Leo. Viewing 15 posts - 1 through 15 (of 16 total) 1 2 → Author Posts September 27, 2019 at 9:44 am #1020631 Hilton Hi, I’d like to know how can I add a message just below comments title. “Your email will not be published” Thanks September 27, 2019 at 10:28 am #1020655 LeoStaff Customer Support Hi there, You can try the below_comments_title hook: https://docs.generatepress.com/article/hooks-visual-guide/#single-post https://docs.generatepress.com/article/hooks-element-overview/ Let me know if this helps π Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ September 27, 2019 at 10:56 am #1020684 Hilton Hi, Yes, it helped. But how can I add a single line paragraph? September 27, 2019 at 11:01 am #1020687 LeoStaff Customer Support Not sure if I understand. What if you just add this as the hook content? <p>Your email will not be published</p> Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ September 27, 2019 at 11:05 am #1020691 Hilton I’ve tried but it didn’t work π September 27, 2019 at 11:07 am #1020694 Hilton It works using before_comments hook, but not using below_comments_title September 27, 2019 at 11:08 am #1020696 LeoStaff Customer Support So nothing shows at all? Did you set the display rules to all posts for the element? Can you try clearing and disabling your caching plugin first? Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ September 27, 2019 at 11:12 am #1020699 Hilton I’ve already tried everything π September 27, 2019 at 11:47 am #1020725 LeoStaff Customer Support Can you try this PHP snippet instead? add_action( 'comment_form_top', 'tu_comments_notify_message' ); function tu_comments_notify_message() { echo '<p>Your email address will not be published. Required fields are marked with *.</p>'; } Adding PHP: https://docs.generatepress.com/article/adding-php/ I’ll look into why the hook doesn’t work. Let me know π Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ September 27, 2019 at 11:53 am #1020737 Hilton Hi, didn’t work either https://prnt.sc/pbw501 September 27, 2019 at 11:54 am #1020738 Hilton ps. I checked “execute PHP” September 27, 2019 at 11:57 am #1020741 LeoStaff Customer Support Try using one of the methods in the Adding PHP link I provided above. Code Snippets is the easiest if you aren’t using a child theme. Let me know π Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ September 27, 2019 at 12:12 pm #1020756 Hilton Adding the PHP snippet to functions.php worked for me π September 27, 2019 at 12:28 pm #1020769 LeoStaff Customer Support Make sure you are adding it to the child theme’s function.php otherwise it will be erased during updates π Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ September 27, 2019 at 12:30 pm #1020772 Hilton Yes, sure. Thanks! Author Posts Viewing 15 posts - 1 through 15 (of 16 total) 1 2 → You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In