I just started in a job where we manage a multilanguage website with loads of pages. On all pages, the doctype declaration is missing, which is kind of a must-have, I believe.
Where is the starting point to add the <!DOCTYPE html> declaration to the top of the page? I tried the template what is being used and tried ../base.html, but nothing helped.
Thank you, everyone, for the help, I appreciate it. The doctype declaration in ./layouts/base.html was placed after some static modules (used for settings/configuration) were called but before the <html> tag. However, I’m not sure those modules are in the right place, but now that I moved the <!DOCTYPE html> declaration above the modules, it works fine.
This should really be in the template files, I assume the templates have been custom built? All the default hubspot ones include this
When you edit a page you will see settings > template > edit this template
Hopefully most of you're pages are built based off a few templates and you just need to update it in a few places.
If you see an {% extends ... %} tag in the template instead of the usual html at the top you should go to the file path of the extends file, this is like a master file that is pulled into sub templates
Matthew Scott Head of Development & Hubspot Solutions Architect | Deeply Digital
B2B marketing agency: Specialist B2B content marketing and demand generation for SaaS vendors and HubSpot Users | Deeply Digital | HubSpot Partner since 2010