[Support request] Add automatic jump mark menu to sidebar

Home Forums Support [Support request] Add automatic jump mark menu to sidebar

Home Forums Support Add automatic jump mark menu to sidebar

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #2290901
    Cathrin

    Dear GeneratePress-Team

    I want to add a left sidebar with the sub-headlines of the blog as jump marks in the left sidebar to make navigation through the blogpost easier.

    I am not sure how to implement this?

    Your help is highly appreciated.

    All the best,
    Cathrin

    #2290905
    Ying
    Staff
    Customer Support

    Hi Cathrin,

    Do you mean a table of content?

    The easiest way is to use a table of content plugin.

    #2290907
    Cathrin

    Yes, that is what I mean!

    Ah I see! Thank you, I will try that. And I can use that in the widget area?

    #2290910
    Ying
    Staff
    Customer Support

    It depends on how the plugin generates the table, it usually can be added in using a widget or a block element – hook.

    #2290916
    Cathrin

    Great thank you. I got that to work.

    Last question – I am trying to make this sidebar sticky on scroll. However it doesn’t work. It does work when I set the position to fixed.

    My current code that is not working:


    @media
    (min-width: 769px) {
    .scroll_detail {
    position: -webkit-sticky;
    position: sticky;
    top: 0px;
    }
    }

    #2290917
    Cathrin

    Thank you!

    #2290982
    Ying
    Staff
    Customer Support

    Try this, if you are using right sidebar, change the leftto right.

    @media (min-width: 769px) {
       .left-sidebar .inside-left-sidebar {
           position: -webkit-sticky;
           position: sticky;
           top: 0px;
       }
    }
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.