Tip #1218: Suppress headers and footers in portals

Dynamics 365 Portals, based on Bootstrap, are very flexible when it comes to the web site and individual page layout. To create consistent look and feel the Website record defines header and footer templates.

image

And the footer looks like this:

image

I was working on a site where I didn’t need a footer at all so I cleared Footer Template field. And I got this:

SNAGHTML1daeb057

What the?!

Yes, folks, a default template is rendered, whatever that is. To suppress header and/or footer, create a blank Web Template, something like

{% comment %}
  This template has been deliberately left blank
{% endcomment %}

and select that template on your Website record. The results are stunning. I don’t even have a screenshot because it’s, well, blank.

Note: if you disable header, it’ll be up to you to render the search box, sign-in/out control, and a language selector elsewhere, because that’s what the default header renders.

(Cover photo by Jeffrey Lin on Unsplash)

Leave a Reply

Your email address will not be published. Required fields are marked *