Menu
All plugins

Sticky Mobile CTA for Bricks

A Bricks element that holds a row of buttons and pins them to the edge of the screen once a visitor has scrolled. It is made for a Book now and Call us bar on phones, and can be set to show at any width.

Version: 0.2.0   Demo: Sticky Mobile CTA demo

Adding it

Add the Sticky Mobile CTA element from the General group. It starts with two Bricks buttons. Add, remove or restyle the buttons like any other nested element.

Which screens

  • Show on screens from and up to a width, so you can limit it to phones or tablets. 0 for the upper limit shows it at every width.
  • Show to everyone, visitors who are not logged in, or logged-in users.
  • Touch screens only, which hides it from anyone using a mouse whatever their window size.

When it appears

  • After scrolling a number of pixels, or a percentage of the page.
  • Once a given element (the hero, say) has scrolled out of view.
  • Always, only while scrolling up, or only while scrolling down.
  • After a wait of a few seconds, with a slide, a fade or no effect and a speed you set.
  • Step aside while any element matching a selector is on screen, such as a booking form that has its own button.
  • Hide within a distance of the end of the page.

Opening hours

Show the bar only between two hours, optionally only Monday to Friday, in the WordPress time zone. It suits a Call us button that should appear only when someone will answer. The hours are checked in the visitor’s browser, so a page cache does not get in the way.

Dismissing

An optional close button. It stays dismissed for a number of days or until the browser closes. Bars with the same shared dismiss ID are dismissed together. Add the class smfb-reset to any link for a Show dismissed bars again link.

Layout and style

  • Bottom or top, as a full-width bar, a floating card or a floating pill.
  • Buttons side by side, stacked, or as an icon row. Fill the width, centre, right or spread out. A maximum width, a gap, and how wide the first button is.
  • Background, an optional frosted-glass blur, edge line, shadow, corner radius, padding and close button colour.
  • The page gets matching space at the edge so the bar never covers content, unless you switch that off.
  • On phones with a home bar the bar keeps clear of it.