Site logo

[Support request] How to fix the position of the entire sidebar of the page

Home Forums Support [Support request] How to fix the position of the entire sidebar of the page

Home Forums Support How to fix the position of the entire sidebar of the page

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2409364
    RYAN

    Hello, how to set the position of the entire sidebar of the page to be fixed? When the page is pulled down, the entire section of the sidebar will not disappear because the page is pulled down

    #2409375
    Fernando
    Customer Support

    Hi Ryan,

    Replace this custom code you have:

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

    with this:

    @media (min-width: 769px) {
        .site-content {
            display: flex;
        }
    
        .inside-right-sidebar {
            position: -webkit-sticky;
            position: sticky;
            top: 40px;
            /*Adjust position */
        }
    }

    This should make your entire sidebar sticky.

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