InMotion Hosting Support Center

Once you have configured your contact form, you can now attach the contact form to your menu. This way the contact form can be found and accessed from an easy to access menu instead of only the link in the footer area. Below are the instructions for adding the contact form to your menu in Drupal 8.

How to add the contact form to a menu

  1. First, log into your admin dashboard.
  2. Next, using the menu bar at the top of the page, select Menu
  3. Next, click on the the Structure link from the second menu bar that appears..
  4. You are now presented with the Structure page where you can see all the different structure types. From here, click on the Menus option.
  5. The next page displays a list of existing menus. Find the menu to which you want to add the contact form and click on the Add Link link from the dropdown.
  6. You are now taken to the Add menu link page where you will enter the data for the menu link.
    Menu link titleThis is the text that will appear in the menu, so it needs to be short and descriptive, usually a single word, maybe two.
    PathThis is the path name for the page. If you gave it an alias when you created it, as we did, then simply enter that in. Otherwise you can enter the regular Drupal path, such as node/3 or even the full URL, like
    DescriptionThis description will appear as the visitor hovers over the link.
    EnabledCheck this to allow the link to display in the menu. If unchecked, it will not appear in any menu. It is checked by default.
    Show as expandedCheck this if your link will have child links and you want them to display in the expanded state.
    Parent LinkSelect the location of your link on the menu by choosing a parent link. By default, the topmost link, or root, is presented.
    WeightThis helps determine where the link will display on the menu in relation to other links. The lower the number, the 'lighter' the link's weight. This means it will appear higher up on a vertical menu or more to the left of a horizontal menu. 'Heavier' links will appear more to the bottom or the right of menus.
  7. After you have entered all the data for the contact form, scroll down and click on the Save button. This will activate your new menu link.Visit your site and you will see the new link on your menu. In our example, you can see it display as a new tab on the main menu. Below is an example of the form as it will appear to the visitor.
Was this article helpful?
Continued Education in Course 203: Managing contact forms in Drupal 8
You are viewing Section 1: Adding a contact form to a menu in Drupal 8
Section 2: Configuring a contact form in Drupal 8

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Support Center Login

Our Login page has moved. Please click the button below to be redirected to the login page.

Post a Comment

Email Address:
Phone Number:

Please note: Your name and comment will be displayed, but we will not show your email address.

0 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!