• Resolved benington

    (@benington)


    Hi, I would like to know if there is any possibility to stick to the top of the sidebar a category where the user is currently reading. Let’s say I have 15 different categories which will appear on the sidebar with their articles. If an user is reading the 14th category I’d like that to be displayed at the top of the sidebar while the user is reading, in order to make it easier for the user to access the next article from the sidebar without scrolling down until 14th category.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Abid Hasan

    (@abidhasan112)

    Hi @benington ,

    Hope you’re doing good today! I completely understand your usecase and idea. Unfortunately, this can’t be possible in BetterDocs Sidebar.

    But I can give you one solution which you may love. You can only show the current category and its articles in the sidebar on your single article page by using this CSS:

    .single-docs .docs-single-cat-wrap {
        display: none;
    }
    
    .single-docs .docs-single-cat-wrap.current-category {
        display: block !important;
    }

    NOTE: You can simply add custom CSS by navigating to your WordPress Dashboard -> Appearance -> Customize.
    After you are on the Customizer page, search for the “Additional CSS” option. You can then go ahead and insert CSS Code.

    Thread Starter benington

    (@benington)

    Hi, this worked like a charm!

    Thanks for your time!

    Plugin Support Abid Hasan

    (@abidhasan112)

    Hi @benington ,

    I am glad I was able to help, please feel free to contact our support anytime you need help, we are always here to help. If you don’t mind me asking, could you do me a favor, and spend 30-sec to review us following this link, this will help us to serve better. Thank you in advance! Link to review: https://www.ads-software.com/support/plugin/betterdocs/reviews/#new-post

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Lock category to top of sidebar when selected’ is closed to new replies.