Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+3 votes
825 views
in Plugins by

Hi,

this is my second plugin for Q2A: sticky sidebar.

It's based on THIS script. I just made plugin, added options (admin panel), and print script in footer. Feel free to comment, fork and improve :)

Demo (gif): https://imgur.com/a/GukIMVd
Demo (my website): pitanja.rs
Git: https://github.com/stefanmm/q2a-sticky-sidebar-plugin/

Right now I am struggling with mobile. SnowFlat theme has off-canvas sidebar, and it's same one that is used for desktop with additional class and styles. So, I had to make dirty fix for it in CSS. Please send suggestion how to improve that part. Basically, script sholud be turned off for screens smaller rhat 979px, and it should works on resizing window (and not to impact performance).

Q2A version: 1.8.2
by
Will this plugin work on cleanstrap theme?
by
I dont know, test it. Theme must have similar structure to this:
<div class="main-content">
    <div class="sidebar">
        <div class="sidebar__inner">
            <!-- Content goes here -->
        </div>
    </div>
    <div class="content">
        <!-- Content goes here -->
    </div>
</div>
You always can set in options panel selectors for main container and sidebar. Just inspect elements and find them. I can help you if you send me image/code of your site.

Please log in or register to answer this question.

...