help center

Search
Close this search box.
On this page

Add a Floating Bar to your site

Last Update: August 26, 2024

What is a Floating Bar?

Floating Bars are templates, not widgets or other elements. Floating buttons are added from WP Admin, not from the Elementor Editor. For details see below, Creating a Floating Bar: Step-by-Step.

See all the options available with Floating Bars.  

Common use case

Jan owns a clothing store. Forecasts are predicting a couple weeks of rain so they want to draw attention to their umbrella selection. To make sure everyone knows they sell umbrellas, they add a Floating Bar to their website so its visible on all pages.

Example

Top bar example Add a Floating Bar to your site 329

Additional use cases

  • Sales: Run sales from your website by offering coupon codes from a Floating Bar.
  • Navigation: Want to draw visitors to a new or special section of your site? Use a Floating Bar as a quick navigation tool.
  • Action Trigger: Use the CTA button on the Floating Bar to encourage your users to sign up for newsletter of take other actions. 

Adding a Floating Button: Step-by-step

In the example below, we’ll create a Floating Button that will allow users to open a chat with a customer representative. This Floating Button uses an Elementor Floating Button templates. 

Warning
Floating Buttons must use a predesigned template. While you can customize this template, you cannot create a new template from scratch.

Create the template

Floating buttons are based on templates, therefore you must create a template before adding a Floating Button. 

  1. From WP Admin, navigate to Templates>Floating Elements.
    Click Floating elements Add a Floating Bar to your site 331
    The create floating element pane opens up on the right.
    Note
    After you create your first floating element, you can create more elements by going to WP Admin and clicking Templates>Add New

    Click Add Floating Element 1 Add a Floating Bar to your site 333

  2. Click Add New Floating Element.
    Select Floating Bars Add a Floating Bar to your site 335
  3. Select Floating Bars from the dropdown menu.
    Name your floating bar Add a Floating Bar to your site 337
  4. (Optional) Name your Floating Bar in the name field.
    Click Create Floating Element2 Add a Floating Bar to your site 339
  5. Click Create Floating Element.
    The Template Library opens to the Floating Bars section. You must select one of these templates in order to create a Floating Bar.

    The floating bar library Add a Floating Bar to your site 341

    Note
    Templates marked Pro are only available to Elementor Pro users.

  6. Select a Floating Bar template by hovering over it and clicking Insert.
    The Template appears in the editor Add a Floating Bar to your site 343
    The template appears in the canvas of the Elementor Editor.

Editing the Floating Button

The Panel offers a number of options, depending on which template you choose. In this example, we’ll change the message displayed in the bar, the icon, the CTA and the placement of the bar. 

  1. In the panel, locate the Icon field.
    Clikc the shirt icon 1 Add a Floating Bar to your site 345
  2. Click the icon on the right.
    The icon library appears.
    Click the umbrella icon2 Add a Floating Bar to your site 347
  3. Select the umbrella icon from the library and click Insert.
    Change announcement Add a Floating Bar to your site 349
  4. In the Announcement field, enter Stormy Weather? Check out our umbrellas. 
    Open the CTA field Add a Floating Bar to your site 351
  5. Open the CTA Button field.
    CTA button Add a Floating Bar to your site 353
  6. Change the Text field to Stay dry!
    In a real online store, this is where you would put a link to the relevant page.
    Click the Advanced tab Add a Floating Bar to your site 355
  7. Open the Advanced tab.
    Click the down icon Add a Floating Bar to your site 357
  8. Click the bottom icon.
    The bar moves to the bottom Add a Floating Bar to your site 359
    The Floating Bar now appears at the bottom of your screen.
    15 Click Piblish Add a Floating Bar to your site 361
  9. In the upper-right corner, click Publish.
    16 Where do you want button to appear Add a Floating Bar to your site 363
  10. Click Add Condition.
  11. (For Elementor Pro users only) Set conditions for the floating bar to appear. This way you can control where in your site it appears. For more details, see Set display conditions for global templates.
    Click Save and close Add a Floating Bar to your site 365
  12. Click Save & Close.
    The floating bar will now appear on the designated pages.

Floating Bar Options

Below are the most common options you’ll find in Floating Bar templates. There are a wide range of Floating Bar templates so some may have different options or layout. 

The Content tab

Content announcement Add a Floating Bar to your site 367

Insert an icon into the top bar. For details, see Adding images and icons.

Add a short text to insert in the top bar. In general you do not want the text to be longer than one line.

Content CTA button Add a Floating Bar to your site 369

A few words that will appear on the CTA button. This text is usually only two or three words. 

The CTA button usually contains a link. This can be a popup, a website page or any other action that can be triggered by a link.

The CTA button can contain an icon. For details, see Adding images and icons.

Content floating Bar Add a Floating Bar to your site 371

Toggle to Hide if you do not want visitors to be able to close the Floating Bar.

Give the Floating Bar a name that will be used by readers for those visitors with accessibility issues.

The Style tab

Style tab Announcemnt Add a Floating Bar to your site 373

If you decide to use an icon, determine its properties:

  • Color: Choose a color for the icon. For details, see Pick a color.
  • Position: Place the icon to the right or left of the announcement text.
  •  Size: Set the size of the icon.

Set the look and feel of the announcement text.

Typography: Determine the size and font of the announcement text. For details, see Typography.

Color: Determine the color of the announcement text. For details, see Pick a color.

Style CTA button 1 Add a Floating Bar to your site 375

The Floating Bar has two types of Calls-to-Action. Use the dropdown to select between:

  • Button
  • Link

Determine the text size and font. For details, see Typography.

Control the text and background color depending on mouse location. 

  • Normal:  Determine how the CTA appears by default. 
  • Hover: Determine how the CTA button appears when moused over. 

Select a text color. For details, see Choose a color or Use global fonts and colors

Select the CTA’s background color. For details, see Choose a color or Use global fonts and colors

Toggle to Yes to add a border to the CTA button. If you add a border, you will need to select a border color and width.

Use the dropdown menu to select:

  • Round: Buttons appear with a smooth corner.
    Rounded: Buttons appear with evenly curved edges.
    Sharp: Rectangular buttons.

By default, the CTA button appears in the Floating Bar. You have the option of animating the button, and having it appear in a variety to ways. If you choose to animate the button, use the dropdown to choose an animations style.

If you animate the button,  do, the Animation Duration appears. Use the slider to determine the amount of time the animation will last.

Style Floating bar Add a Floating Bar to your site 377

Be default, Top Bars have a button visitors can use to hide the Top Bar. You can determine the look and position of the Close button:

  • Horizontal position: Determine whether the Close button will appear on the right or left of the Floating Bar. 
  • Color: Determine the color of the Close button. For details, see Choose a color or Use global fonts and colors
  • Size: Use the slider to determine the size of the Close button.

The announcement text, icon and CTA button, are the elements of the Floating Bar. Use the icons to align these elements to the:

  • Left
  • Center
  • Right
  • Stretch: have the elements spread across the Floating Bar.

Determine how much space there is between the announcement text, icon and CTA button.

Add padding to the announcement text, icon and CTA. For details, see Padding and margins.

Add a background to the Floating Bar. For details, see Create a Background

 

Add a background to the Floating Bar that has some transparency to it.

The Advanced tab

Advanced Layout Add a Floating Bar to your site 379

Use the icons to place the Floating Bar at the top or bottom of the screen.

Toggle to No if you want the Floating Bar to disappear  as visitors scroll down the page.

Note
If you toggle to No, you will only see this effect on the frontend
Advanced Responsive Add a Floating Bar to your site 381

Allows you to choose when the dropdown menu will activate, when you select it (Click), or when you mouse over it (Hover).

You can choose to have your dropdown slowly appear. If you do, Animation Duration determines the amount of time it will take for the dropdown to fully appear.

Advanced CSS Add a Floating Bar to your site 383

Give the Floating Bar a CSS ID so it can be identified. For details, see CSS ID.

Give your floating Bar a CSS Class. For details, see CSS Classes in Elementor.

Advanced Custom CSS Add a Floating Bar to your site 385

Add custom CSS to the Floating Bar. For details, see Add Custom CSS.

Advanced Attributes Add a Floating Bar to your site 387

Add Attributes to the Floating Bar. For details, see Custom attributes.

Have more questions? We’re more than happy to assist.

Link is copied to clipboard!
On this page

Is this article helpful?

Share this article