Help > Forum > Topics & Posts > Hiding the email address text box on the compose message page

Hiding the email address text box on the compose message page

You can follow the instructions below to hide the email address text box that appears for a guest user (not signed up / not logged in) while creating a topic or replying to a post.

  1. Log in to your Website Toolbox account.
  2. Click the Appearance link.
  3. In the Appearance menu, click the HTML link.
  4. Insert the following code into the Forum Footer HTML Code text box:
    <script>
    if (document.querySelector(".first-post.preview-post #topic-details input#email").parentElement.parentElement.classList.contains('form-group')) {
    document.querySelector(".first-post.preview-post #topic-details input#email").parentElement.parentElement.remove();
    }
    if (document.querySelector(".guest-post input#guestEmail")) {
    document.querySelector(".guest-post input#guestEmail").remove();
    } 
    </script>
    		
  5. Save the changes.


If you still need help, please contact us.