- This topic has 5 replies, 4 voices, and was last updated 8 months ago by
Tom.
-
AuthorPosts
-
May 27, 2020 at 8:01 am #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?
May 27, 2020 at 2:42 pm #1304126Leo
StaffCustomer SupportHi there,
Not sure if I fully understand.
What is the issue here?
It needs to be sticky?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/May 28, 2020 at 4:08 am #1304756Carol
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.
May 28, 2020 at 5:30 am #1304847David
StaffCustomer SupportHi 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; } }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/May 28, 2020 at 8:38 am #1305215Carol
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.
May 28, 2020 at 2:00 pm #1305586Tom
Lead DeveloperLead DeveloperHi 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?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development -
AuthorPosts
- You must be logged in to reply to this topic.