Generic Topbar Template
To boost the marketing activitites on your website, you can add a uMS top bar to you website. Find a template for the top bar in this article.
Use this template to add a top bar to your website. The template can be set up and used without help from a developer.

It is recommended to personalize the popup to make it even more relevant for your specific audience.
CSS
With the top bar set up, you can change the look to fit your website. Copy and paste this CSS into Umbraco and your top bar is ready.
If you want to change the colors, you can do that in the JavaScript file.
Feel free to play around with other properties. You can always use the code from this article to reset the styling.
JavaScript
The top bar will not affect the styling of your existing page or website. Some JavaScript is needed to insert the popup HTML in your existing content to apply the top bar. The code also includes an option for visitors to close the top bar.
Copy and paste the following JavaScript into Umbraco Engage.
Changing colors
You can change the following colors on the top bar:
BackgroundColor
TextColor
BorderColor
Fixed topbar
By default, the top bar is fixed and always visible when the user scrolls. That means it will be an overlay on the page, and potentially hide content underneath it.
If you do not like that, you can set the isFixed
option to false
. It will act like a regular element that does not scroll with the user's scroll position but does not overlap with the content. You can play with the top bar element and you can change that element at domElement
.
Font family
If you like to use your website's font, you can set the inheritFont
option to true
.
Last updated
Was this helpful?