[Support request] Banner fijo en la barra lateral

Home Forums Support [Support request] Banner fijo en la barra lateral

Home Forums Support Banner fijo en la barra lateral

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1303669
    Carol

    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?

    #1304126
    Leo
    Staff
    Customer Support

    Hi there,

    Not sure if I fully understand.

    What is the issue here?

    It needs to be sticky?

    #1304756
    Carol

    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.

    #1304847
    David
    Staff
    Customer Support

    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;
        }
    }
    #1305215
    Carol

    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.

    #1305586
    Tom
    Lead Developer
    Lead Developer

    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?

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.