Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #24489

    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

    #123606

    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.

    #123607

    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

    #123608

    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.

    #123609

    It’s work thx !

    But i replace :

    #top #main .sidebar {

    position: fixed;

    right: 114px;

    }

    Regards

    R3v0x

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Fix sidebar’ is closed to new replies.