Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #997772
    acritch
    Participant

    I am trying to create a “Features” type page where I list features in a sidebar and the links jump to certain areas on the page. I’ve managed to get the sidebar to appear, populate, and link to sections of the page. The only thing I can’t figure out is how to get the sidebar to be static so it does not scroll with the rest of the page. Given the length of the sidebar it will need to scroll at some point, but it would be desireable to have it static when scrolling on the main body.

    I did search the forums for this topic and I haven’t been able to find a solution that works as I’d prefer NOT to switch stacks.

    I will include the page info in a separate post since it is in a Coming Soon mode.

    #997773
    acritch
    Participant
    This reply has been marked as private.
    #997883
    Joao
    Moderator

    Hi There,

    Please add this code at your Appereance / Customizer / Custom / CSS

    
    .x-sidebar.right {
        position: fixed;
        right: 100px;
    }

    Hope that helps,

    Joao

    #997923
    acritch
    Participant

    That worked perfectly! Thank you very much!

    #998045
    Rahul
    Moderator

    You’re welcome!

    #1121034
    Stephan M
    Participant

    Would this solution be responsive or require adding media queries to hide it at certain screen sizes?

    #1121042
    Thai
    Moderator

    Hi Stephan,

    Would you mind providing us with your website URL so we can take a closer look?

    Thanks.

  • <script> jQuery(function($){ $("#no-reply-997772 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>