Cómo mantener fija la barra de anuncios de Squarespace al desplazarse por la página

The built-in announcement bar is great for bringing attention to promos, sales, or anything else you want to call attention to, but as soon as someone scrolls down the page it’s gone.

That’s why we want to make it sticky so it gets seen and hopefully increases conversions.

announcement-bar.png

Here’s the CSS we’re using on this site.

.sqs-announcement-bar-dropzone {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 9999;
}
.show-on-scroll-wrapper.show {
    display: none;
}

To implement, just and paste this to your Custom CSS which you can find in the Home Menu under Design.

Note we’re using the position: sticky instead of position: fixed. The latter will likely cause the announcement bar to overlap your header/navigation like this.

overlap.jpg
Omari Harebin

Omari Harebin es el fundador de SQSPThemes, uno de los recursos independientes sobre Squarespace más veteranos de la red. Durante más de una década, ha ayudado a otras personas a crear y hacer crecer sus proyectos en Squarespace. En la actualidad, su trabajo se centra en ayudar a los diseñadores independientes de Squarespace a consolidar sus negocios, conseguir mejores proyectos y situarse en un segmento de mercado más exclusivo.

https://www.omariharebin.com
Anterior
Anterior

La guía definitiva para escribir un blog en una página de Squarespace

Siguiente
Siguiente

How to edit a 404 error page in Squarespace