OptinMonster Documentation

Documentation, Reference Materials, and Tutorials for OptinMonster

Home

Docs

How to Create a Floating Bar Campaign

How to Create a Floating Bar Campaign

OptinMonster makes it easy to create and display a Floating Bar campaign on your site. Convert subscribers without interrupting their browsing experience, displaying your campaign at the top or bottom of the browser window.

In this article, you will learn how to create a Floating Bar campaign.

Create a Floating Bar Campaign

To create a Floating Bar campaign, follow these steps:

  1. From the Campaigns screen, select the Create New Campaign button.
    Select the Create New Campaign button to get started in OptinMonster.
  2. From the modal, select Templates as the type of campaign you’d like to create.
    Select Templates from the popup modal to begin selecting a campaign template in OptinMonster.
  3. On the next screen, select Floating Bar as the campaign type.
    Select Floating Bar as the campaign type
  4. You can filter, sort, and search from available Floating Bar campaign templates.
    Filter and search Floating Bar templates.
  5. Hover over any template in the list to Preview or Use Template to select it and open the campaign builder.
    Preview or use a Floating Bar template in OptinMonster.
  6. Once you’ve selected a campaign you’ll be prompted to give it a name and assign it to a site in your account.
    Select the Start Building button to create the campaign and open it in the builder to customize.
    Name and assign the new Floating Bar campaign.
  7. You can now configure and customize your campaign in the builder, be sure to Save the changes as you work.
    Just getting started? Follow our guide here to customize your campaign, or join a demo!

If you’re serious about jumpstarting your website business growth, then get started with OptinMonster today!

Get Started With OptinMonster Today!

BONUS: Done-For-You Campaign Setup ($297 value)
Our conversion experts will design 1 free campaign for you to get maximum results – absolutely FREE! Click here to get started →

Frequently Asked Questions

Can I reposition the Floating Bar campaign?

Yes, follow our guide here to reposition the Floating Bar campaign.

Troubleshooting

My Floating Bar campaign is sitting on top of the header / navigation of my site instead of pushing it down.

The default behavior for the Floating Bar campaign is to push the page content down when the campaign is positioned at the top of the browser.

If you’re seeing the Floating Bar overlay your page content instead of at the top, it’s likely that your site’s theme or styling is interfering with the natural behavior of the campaign. For example, if your site has a sticky header or navigation bar this can result in the campaign overlaying that sticky header or navigation bar.

This can be addressed by adding the following Javascript code directly to your site. Be sure to update the code as mentioned in the comments:

document.addEventListener('om.Campaign.afterShow', function(event) {
    if (event.detail.Campaign.id == 'zjd3hxxogbfvmy2iz0rp') // your slug
    {
        var campaignID = 'om-'+ event.detail.Campaign.id;
        var campaignHeight = document.getElementById(campaignID).offsetHeight;
        var fixedElement = document.getElementById('top'); //give ID for your fixed element OR document.querySelector('.yourClassName.yourSecondClassName');
        fixedElement.style.top = campaignHeight + 'px';
    }
});
document.addEventListener('om.Campaign.close', function(event) {
    var fixedElement = document.getElementById('top'); //give ID for your fixed element or document.querySelector('.yourClassName.yourSecondClassName');
    fixedElement.style.top = 0;
});
How To Prevent the FloatingBar from Scrolling Down along with Scrolling Webpage

Just add this CSS snippet to the campaign to achieve this:

html div#om-{{id}}.CampaignType--floating
{
position: absolute !important;
top: 0 !important;
display: block !important;
Background: #0B8BBB !important;
}

Still stuck?

How can we help?

Last updated on


Start Getting More Leads & Sales Today with OptinMonster!

Start Getting More
Leads & Sales Today
with OptinMonster!

Create and launch smart capture forms today in minutes. What are you waiting for?

Create and launch smart capture forms
today in minutes. What are you waiting for?

OptinMonster has transformed our business. Before integrating their optins, our clients saw a 2% conversion rate from web traffic, which is slightly above the standard for their industry. With the integration of OptinMonster’s lightbox popup, exit-intent technology, split testing, and other tools, our client’s conversion rates soared by an unprecedented 500%. They attracted substantially more customers while spending less on digital advertising. Their success propelled them to the top of their markets, outperforming national chains and other medical spas with much bigger marketing budgets. Our client’s success in their market has distinguished us in our own. We are now one of the most sought-after marketing firms in the industry of aesthetic medicine. We know that the integration of OptinMonster, more than any other tool or marketing strategy, has supported this growth and achievement.

chris zelig medstar media

Chris Zelig

Partner, Medstar Media

OptinMonster has been a game-changer for us. From driving donations to collecting new leads, there is nothing that this simple tool has failed to accomplish. Our lead collection rate has jumped by over 1,000%.

joe lowe american bird conservancy

Joe Lowe

Director of Digital Communications, American Bird Conservancy

Through OptinMonster’s exit-intent popups, we have more than doubled our sales conversion rate. Best of all is the compound effect of using OptinMonster over a long period of time—more conversions mean more customers, which means more word of mouth.

mitch smith, managing director, shockbyte

Mitch Smith

Managing Director, Shockbyte.com