How To Make Any Widget Sticky in Blogger
Saturday, June 8, 2013
0
comments
When a visitor scrolls down your blog to look at additional content, the higher portion of your blog goes out the window from the highest to create method for the lower portion that enters from very cheap.
Now what we tend to ar progressing to do is stick your chosen gadget to the highest fringe of the window because it is on the point of leave, so creating the gadget visible the least bit time whereas the visitor scrolls. it'll float there till its original location comes back once the page is scrolled keep a copy.
This trick is applicable to associate degreey gadget or component that has an ID, no matter its location on your blog. it's good for a navigation bar, subscription box and social media sharing buttons.
See it in action, scroll down this post and keep your eyes on the highest menu bar.
How to install
1. Press Ctrl+F and find </body>
2. Paste the following code above the </body> tag in your template or put it in a HTML/Javascript widget. If you choose to HTML/Javascript widget, make sure you position it below the widget that you want to make sticky.
3. Get the ID of the widget or element you want to make sticky and enter it in line 6 (replacing "YOUR_WIDGET_ID"). For example let's say the widget ID is HTML9, then code line 6 would become:
bs_makeSticky("HTML9");
4. Preview before saving.
Styling
Styling for the sticky widget while it's sticking can be applied in line 28.
Background and box-shadow are optional. However you might want to keep the background (and replace the color to match your sidebar's). Most templates do not assign a background to widgets meaning you can see the content scrolling in the background.
Enjoy!
Now what we tend to ar progressing to do is stick your chosen gadget to the highest fringe of the window because it is on the point of leave, so creating the gadget visible the least bit time whereas the visitor scrolls. it'll float there till its original location comes back once the page is scrolled keep a copy.
This trick is applicable to associate degreey gadget or component that has an ID, no matter its location on your blog. it's good for a navigation bar, subscription box and social media sharing buttons.
See it in action, scroll down this post and keep your eyes on the highest menu bar.
How to install
1. Press Ctrl+F and find </body>
2. Paste the following code above the </body> tag in your template or put it in a HTML/Javascript widget. If you choose to HTML/Javascript widget, make sure you position it below the widget that you want to make sticky.
3. Get the ID of the widget or element you want to make sticky and enter it in line 6 (replacing "YOUR_WIDGET_ID"). For example let's say the widget ID is HTML9, then code line 6 would become:
bs_makeSticky("HTML9");
4. Preview before saving.
Styling
Styling for the sticky widget while it's sticking can be applied in line 28.
Background and box-shadow are optional. However you might want to keep the background (and replace the color to match your sidebar's). Most templates do not assign a background to widgets meaning you can see the content scrolling in the background.
Enjoy!
TERIMA KASIH ATAS KUNJUNGAN SAUDARA
Judul: How To Make Any Widget Sticky in Blogger
Ditulis oleh muamar
Rating Blog 5 dari 5
Semoga artikel ini bermanfaat bagi saudara. Jika ingin mengutip, baik itu sebagian atau keseluruhan dari isi artikel ini harap menyertakan link dofollow ke https://androidmobile7.blogspot.com/2013/06/how-to-make-any-widget-sticky-in-blogger.html. Terima kasih sudah singgah membaca artikel ini.Ditulis oleh muamar
Rating Blog 5 dari 5
0 comments:
Post a Comment