How to add in Drupal 8 a custom (suggestion) default contact page template ?

Thank you


Way 1: Use drupal template suggestion:

You can enable the template suggestions by following changes as mention in https://www.drupal.org/docs/8/theming/twig/debugging-twig-templates

Once you have the suggestions enabled you can see, drupal suggests few template possiblities for any page, you can use any of the suggested template.


Way2: Declare custom template suggestions

Or you can customd define template based on any logic by implmenting hook_theme_suggestions_page_alter().



  • glad it helped you!
    – arpitr
    Feb 23 '17 at 21:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.