How to Create a Simple Sticky Sidebar in Blogger

06:17:00
If you are blogger then while browsing your websites you migh see that your sidebar widgets are disappearing when you scrolling down. If you want to make that widgets sticky then must watch this super simple tutorial.

Creating sticky sidebar is very very simple, don't afraid of coding just follow this step step tutorial and then I'mm sure that you will succeed in creating sticky sidebar.

Sticky Sidebar
Sticky Sidebar

How to Make a Sticky Sidebar in a Blogger?

Creating sticky sidebar is very simple, just follow this steps and at the end of the post your blog widgets become sticky so that it would be more visible to your visitors.

Step 1 - Navigate to your Blogger Dashboard >> Theme >> Edit HTML.

Step 2 - Press anywhere on the codes and then press CTRL + F and search for </body>

Step 3 - Now copy this code and press just above the </body> tag of your theme.
<script type='text/javascript'> //<![CDATA[ // Sticky Widget function makemeSticky(e){function t(){var e=s.getBoundingClientRect();e.top<0?(n.className=a+" makesticking",n.style.width=i+"px"):n.className=a}var n=document.getElementById(e),s=document.createElement("div");n.parentNode.insertBefore(s,n);var i=n.offsetWidth,a=n.className+" makesticky";window.addEventListener("scroll",t,!1)}makemeSticky("HTML1"); //]]> </script>
Step 4 - Now, Replace "HTML1" with your "YourWidgetID".

Step 5 - To find your widget id just go again to the "Edit HTML" section and then press CTRL + F after that search the title of the widgets which you want to make sticky. for eg- "Archieves"
Sticky Sidebar
Widget Title
Step 6 - After searching your "widget title" then you will get your "widget id".
Just replace that "ID" with that "HTML 1" in the above code. (see image)

Sticky Sidebar
Sticky Sidebar


Summary

So, the concept is so simple, all you have to do is first copy that code and then paste just above the </body> tag. Now replace the widget id "HTML1" with your widget id and to find the widget id, search for your widget title and you will get your widget id.

So the concept of Sticky Sidebar is to generate more clicks from that particular widgets and if you don't have sticky sidebar then your widgets will disappear after a ceratin scroll.

Hope that this will help you to engage more with your viewers, just spend you next 2 minutes to help other by sharing this post.

Share this

I am Abhit Upadayay and also Owner of this Blog. I am Interested in Technology, Tips, Tricks. I am Passionate about Blog and Try to Give Quality content to Our Readers.

Related Posts

Previous
Next Post »