You can give a customer their own banner on the Client Portal, such as their logo across the top of every page or a message above their product list. This article shows the two ways to do it, the image sizes to use, and what to check when a banner does not appear.
Which banner do you need?
| Sub Portal header | Page banner | |
|---|---|---|
| Best for | Customer branding: a logo or artwork strip that is always there. | A message or promotion for one customer, such as a campaign notice. |
| Where it shows | At the top of every portal page. | Above the category list, product list and product detail pages, each of which you can switch on or off. |
| Images | Upload them in M-Power. | No upload. The image must already be on the web. |
| Set up in | Settings → Portal → Sub Portals | The company's Portal tab → Settings |
Most customer banners are Sub Portal headers. Both kinds are written as HTML, and this article gives you snippets to copy.
Option 1: a Sub Portal header
A sub portal is a portal design that belongs to one customer. Its header is the banner.
- Go to Settings → Portal → Sub Portals.
- Click Add Sub Portal and give it a name. The name is for your reference only; customers never see it. If the customer already has a sub portal, click it in the list instead.
- Set Portal Customer to the customer, and tick Is Active.
- Open the Images tab and click Upload Image under Header Image. Choose your banner file. Once uploaded, the image is shown with its actual size underneath.
- Open the Header tab and paste one of the snippets below into the Header HTML Editor.
- Click Save.
- Log in to the portal as a user from that customer and check the banner.
__HEADER_IMAGE__ where the image address belongs, as in the snippets below, and M-Power fills in the address for you.Image guidelines
| File type | PNG only (.png). |
| File size | 1 MB at most. Larger files are rejected. |
| Size | A wide, short strip. About 1920 × 200 pixels suits a full-width banner. For a logo on a coloured background, the logo only needs to be about 150 to 200 pixels high. |
| How many | Two header images and two footer images for each sub portal. |
| Design tips | Keep text and logos away from the left and right edges, because a full-width banner shrinks on phones and small text becomes hard to read. Save photos at a lower PNG quality, or as an 8-bit PNG, to stay under 1 MB. |
Uploading a new image replaces the old one. Your customers' browsers may keep showing the old image for a while; a hard refresh (Ctrl + F5, or Cmd + Shift + R on a Mac) shows the new one.
Snippets to copy
Full-width banner. The image stretches across the page and scales down on smaller screens.
<div style="width: 100%;">
<img src="__HEADER_IMAGE__" alt="Customer name" style="width: 100%; height: auto; display: block;">
</div>Logo centred on a coloured strip. Change the colour to the customer's brand colour.
<div style="background-color: #e31937; text-align: center; padding: 10px 0;">
<img src="__HEADER_IMAGE__" alt="Customer name" style="max-width: 100%; height: auto; max-height: 180px;">
</div>Clickable banner. Clicking the banner opens a page, such as a featured product. Replace the address with your own.
<a href="/products/">
<img src="__HEADER_IMAGE__" alt="Customer name" style="width: 100%; height: auto; display: block;">
</a>Logo over a repeating background. Upload the background as Header Image - 2 and the logo as Header Image.
<div style="background-image: url('__HEADER_IMAGE_2__'); background-repeat: repeat-x; background-size: contain; text-align: center;">
<img src="__HEADER_IMAGE__" alt="Customer name" style="max-width: 100%; height: auto; max-height: 180px;">
</div>__HEADER_IMAGE__ instead of pasting the image's full web address. The placeholder keeps working if the image is replaced or moved.The footer works the same way: upload under Footer Image, and use __FOOTER_IMAGE__ and __FOOTER_IMAGE_2__ in the Footer tab.
Branches and head offices
- A sub portal applies to its Portal Customer and to every company that has that customer set as its Head Office. Set the banner up once on the head office and all branches get it.
- If a branch's head office has a sub portal, the branch uses the head office's design, even if the branch has a sub portal of its own.
- To give one branch a different design, open that company's Portal tab, go to Settings, and enter the sub portal's id in Use Sub Portal Override. This takes priority over everything else.
- A sub portal with Override Portal Default ticked is used for every customer who has no sub portal of their own.
Option 2: a page banner for one customer
A page banner sits above the list of categories or products, under the menu. Use it for a message to one customer.
- Open the company and go to its Portal tab, then Settings.
- Check the line Banners are switched on for. It shows which of the three pages (category list, product list, product detail) currently show banners. To change them, go to Settings → Portal → Portal Settings → Page Banners and tick the pages you want. These ticks apply to every customer.
- Enter the banner HTML in Banner Content.
- Click Save.
A simple text banner:
<div style="background-color: #fcf8e3; border: 1px solid #f0e2a8; border-radius: 4px; padding: 12px 16px; margin-bottom: 10px;">
<strong>Winter campaign:</strong> orders for the June promotion close on Friday 12 June.
</div>An image banner. There is no upload here, so the image must already be on the web, for example on your website:
<img src="https://www.example.com/images/banner.png" alt="Winter campaign" style="width: 100%; height: auto; display: block;">
For a page banner image, about 1200 × 150 pixels works well.
Which page banner a customer sees
M-Power shows the first of these that has content:
- The customer's own Banner Content.
- Their head office's Banner Content.
- The System Level Banner Content from Settings → Portal → Portal Settings, which is shown to everyone else.
To remove a customer's banner, clear the Banner Content box and save.
If the banner does not appear
| What you see | Check |
|---|---|
| The header image was uploaded but does not show. | The Header HTML must contain __HEADER_IMAGE__, and the sub portal must have Is Active ticked. |
| The upload is refused. | The file must be a PNG of 1 MB or less. |
| The customer sees a different design. | Their head office's sub portal takes priority. Check the company's Head Office and its Use Sub Portal Override setting. |
| The old image still shows. | Hard refresh the page (Ctrl + F5, or Cmd + Shift + R on a Mac). |
| The page banner does not show on a page. | That page must be ticked under Settings → Portal → Portal Settings → Page Banners. |
| The banner looks squashed or cut off on a phone. | Use width: 100%; height: auto; on the image, as in the snippets, and avoid a fixed height. |
Comments
0 comments
Article is closed for comments.