I want to customize the default contact-us page of erpnext

Hi,

I’m trying to customize the default “Contact Us” page in ERPNext like my other custom web pages, but I can’t find where its HTML or JS code is located in the Desk.

I checked the Web Page list and other settings, but couldn’t find anything related to it.

How can I edit or override the Contact Us page?

Thanks.

The Contact Us page isn’t in the Web Page list because it’s a built-in Frappe template, not a database record. That’s why you can’t find it in the Desk.

The easiest way to override it is through your custom app. Just create the same file path inside your app:


your_custom_app/templates/pages/contact.html
```

Frappe's template loader will automatically pick yours over the core one, so no patching needed. You can grab the original from `frappe/templates/pages/contact.html` on GitHub as a starting point so you don't lose the form submission logic.

If you don't want to touch templates at all, another option is creating a Web Page with the route set to `contact` — that'll override the built-in route too. Works well if it's mostly layout/design changes.

Thank you sir for the help.
Found the github link for the original form submission logic - frappe/frappe/www/contact.html at 8a80840abd4addb09396237367d8b4d6b279164e · frappe/frappe · GitHub