Site logo

Archived topic

Banner fijo en la barra lateral

5 replies · Started by Carol on May 27, 2020

Viewing posts 1–6 of 6

Hola a todos, necesito poner un banner publicitario en la barra lateral de mis webs y me comentan que no puedo hacerlo por el tema, es decir, por usar GP. Añado style="position: fixed;" y no se queda fijo al hacer scroll, ¿Cómo puedo hacerlo? A alguien más le ha ocurrido? Realmente es por el tema?

Muchas gracias por vuestra ayuda.

Hello everyone, I need to put an advertising banner in the sidebar of my websites and they tell me that I cannot do it because of the subject, that is, because I use GP. I add style = ”position: fixed;” and it doesn't stay fixed when scrolling, how can I do it? Has anyone else happened to it? Is it really because of the theme?

Hi there,

Not sure if I fully understand.

What is the issue here?

It needs to be sticky?

Sí, te explico mejor, quiero poner un banner de TheMoneytizer en la sidebar derecha, de forma que al hacer scroll el banner quede fijo (sticky) y siempre se vea. El código que he puesto arriba es el que me facilitan en Themoneytizer y no funciona. El caso es que me dicen que la culpa es de Generatepress. ¿Os ha pasado a alguién? ¿Cómo puedo hacerlo?

Gracias.

Hi there,

try adding this CSS:

@media(min-width: 769px) {
    .right-sidebar .site-content {
        display: flex;
    }
    .right-sidebar .inside-right-sidebar {
        height: 100%;
    }
    .right-sidebar .inside-right-sidebar .widget:last-child {
        position: -webkit-sticky;
        position: sticky;
        top: 10px;
    }
}

Hola David, muchas gracias por tu respuesta, ¡funciona genial! por fin...Solo he tenido que cambiar el top:10 por top:50 porque no se veía completo el anuncio.

Por otra parte, otra cosilla que tengo que solucionar es que en la versión móvil, solo en la página Contacto, el anuncio se queda fijo arriba al hacer scroll ocupando la mitad de la página ¿bastaría con cambiar algo del código que me has facilitado?

Gracias.

Hi there,

That looks like an ad is being placed inside your navigation on that page. When the navigation becomes sticky, the ad is sticky as well.

Perhaps manual ad placement may be better?

This archived topic is closed to new replies.