Joecalih
  • Blogging
    • WordPress
    • Blogger
      • Blogger Widgets
    • Marketing
      • Content Marketing
      • Social Media Marketing
      • Email Marketing
      • Affiliate Marketing
    • Tips & Tricks
  • SEO
    • What is SEO
      • White Hat SEO
      • Black Hat SEO
    • SEO Tutorials
      • Local SEO
      • Video SEO
      • Image SEO
    • On-Page-SEO
    • SEO ToolsFree
    • Link Building
    • PPCHot
  • Graphics
    • PhotoshopNew
      • Photoshop Actions
      • Photoshop Brushes
      • Photoshop Overlays
      • Photoshop Textures
      • Photoshop Tutorials
    • LightroomHot
      • Lightroom Presets
      • Lightroom Mobile Presets
      • Lightroom Tutorials
    • Premuire Pro
    • Design
      • Posters
      • Mockups
      • Vectors
  • Photography
  • Shop$69
  • Offers
  • Support
  • Licenses
  • Advertise
Subscribe
Joecalih
Joecalih
  • Blogging
    • WordPress
    • Blogger
      • Blogger Widgets
    • Marketing
      • Content Marketing
      • Social Media Marketing
      • Email Marketing
      • Affiliate Marketing
    • Tips & Tricks
  • SEO
    • What is SEO
      • White Hat SEO
      • Black Hat SEO
    • SEO Tutorials
      • Local SEO
      • Video SEO
      • Image SEO
    • On-Page-SEO
    • SEO ToolsFree
    • Link Building
    • PPCHot
  • Graphics
    • PhotoshopNew
      • Photoshop Actions
      • Photoshop Brushes
      • Photoshop Overlays
      • Photoshop Textures
      • Photoshop Tutorials
    • LightroomHot
      • Lightroom Presets
      • Lightroom Mobile Presets
      • Lightroom Tutorials
    • Premuire Pro
    • Design
      • Posters
      • Mockups
      • Vectors
  • Photography
  • Shop$69
  • Offers
Instagram
Recent Posts
  • How To Remove Powered By Blogger Attribution
  • Picture Optimization for Blogger SEO
  • How to Put Meta Keywords in Blogger Post
  • SEO Optimization Website Practices 2021
Landscape Lightroom Presets
  • Picture_Optimizaton_for_Better_Blogger_SEO_Ranking 1
    Picture Optimization for Blogger SEO
    • February 8, 2021
  • how-to-redirect-404-error-page-to-homepage-in-blogger-min 2
    Redirect 404 Error Page To Homepage In Blogger
    • February 1, 2021
  • Blogging 3
    How To Start Your First Blogger Blog
    • January 31, 2021
  • markup-schema 4
    Professional Service Blogger Markup Schema Data
    • January 31, 2021
0
  • Blogger

How to add fixed sidebar in blogger

  • Joecalih
  • January 28, 2021
  • No comments
  • 69 views
  • 2 minute read
Sticky Fixed Sidebar In Blogger

A sticky sidebar in a website is encouraged by every developer, SEO, and revenue-oriented bloggers. Blogger websites need sticky blogger widgets that scroll= with them as they read down the website post. A scrolling sidebar just uses jquery code to keep it fixed during scrolling between the header wrapper and footer. The important ideology behind the making of blogger right sidebar scroll with you is to encourage the click-through rate. I have implemented the idea to float my AdSense widget in my blogger sidebar as you scroll down. Let’s learn how to add the sticky fixed sidebar to a blogger website below.

Steps To Make Sidebar Sticky in Blogger.

1. Login to your blogger platform and choose your website.
2. Click on Theme in the right sidebar.
3. Click on Edit HTML.
4. Click anywhere in the code and hold Ctrl+F
5. Search for </body> in the search box
6. Just BEFORE the above code copy and paste the below Jquery code.

<script>
// Sticky widget by joecalih.com
// Tutorial at //joecalih.com/how-to-floatstick-blogger-widgets/
// Free to use or share, but please keep this notice intact.
//<![CDATA[
bs_makeSticky(“HTMLID“); // enter your widget ID here
function bs_makeSticky(elem) {
var bs_sticky = document.getElementById(elem);
var scrollee = document.createElement(“div”);
bs_sticky.parentNode.insertBefore(scrollee, bs_sticky);
var width = bs_sticky.offsetWidth;
var iniClass = bs_sticky.className + ‘ bs_sticky’;
window.addEventListener(‘scroll’, bs_sticking, false);
function bs_sticking() {
var rect = scrollee.getBoundingClientRect();
if (rect.top < 0) {
bs_sticky.className = iniClass + ‘ bs_sticking’;
bs_sticky.style.width = width + “px”;
} else {
bs_sticky.className = iniClass;
}
}
}
//]]>
</script>

7. Change the HTML ID with your widget id that you would like to float.
8. That’s all, now save your template code and test your final results by viewing your website.

Share
Tweet
Pin it

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Subscribe now to our newsletter

  • Blogger Themes
  • After Effects Templates
  • MockupsNew
  • Blogger Widgets
  • Photoshop Tutorials
  • Blogger TutorialsFree
  • Search Engine Optimization
  • WordPress Tutorials
  • Lightroom Presets$5
  • Camera Raw Presets
  • Premuire Pro Presets
  • Graphic designFree
Joecalih
  • About Us
  • Contact Us
  • Support
  • Cookies
  • © 2020 Joecalih Media inc.

Input your search keywords and press Enter.