Hello, I want to fix my right sidebar in my blog (http://www.socialweb.fr/memoire-marketing-relationnel/)
When the user scroll, widgets remain at the same level of the page
How could I do?
Regards
R3v0x
You should add a surrounding element like a DIV to all of your widgets (to be done within sidebar.php) giving it a new ID like “sticky-side”. Then apply a position:fixed to it. This ensures to have the whole sidebar at a relative position while your own stuff will be fixed. Don’t miss out the media query for mobile devices, otherwise your fixed div will overlap.
Thank you for your help, not having sufficient knowledge to insert the code myself, can you tell me which piece of code do I add and where?
Thx you very much
Tbh I think this is not easily possible and this will break various things and will cause several issues. You can try following code – insert it into the quick css field:
#top #main .sidebar {
position: fixed;
right: 160px;
}
If it works great, if not please stay away from this customization.
It’s work thx !
But i replace :
#top #main .sidebar {
position: fixed;
right: 114px;
}
Regards
R3v0x