In this tutorial nosotros volition run across how to add together a floating social media sharing bar below the championship of Blogger posts , hence when a reader scrolls downward the page , he volition nonetheless hold upward able to run across the sharing buttons without having to scroll dorsum to the top.
Adding the below jQuery script volition brand the buttons float inward a fixed seat equally shortly equally they achieve “the top” of the page. By scrolling dorsum , the buttons volition supply to their initial position. The social sharing bar includes buttons for Facebook , Twitter , Google+ , in addition to Pinterest.
Social Media Sharing Buttons below Blogger Post Title
- From the Blogger Dashboard , become to “Template” in addition to click on the “Edit HTML” button:
- Click anywhere within the code expanse in addition to press the CTRL + F keys to opened upward the search box. Once you lot run across the search box , type the tag within the search box in addition to hitting Enter to respect it.
- Just inward a higher identify add together this script:
- Now earlier the ]]> tag (press CTRL + F to respect it) add together the next CSS styles:
#floating-social-buttons {
padding: 6px 0px 12px;
position: absolute;
background: #F6F6F6;
border-bottom: 1px corporation #DEDEDE;
width: 550px;
height: 18px;
z-index: 99;
}
.floating-social-buttons {
margin-left: 5px !important;
}
.floating-social-buttons li {
float: left;
margin-left: 5px;
list-style:none;
}To alter the width of the bar , modify the 550px values inward red. Note that this value also appears inward the script which also needs to hold upward modified
- Finally , only below the minute
Customizing the Floating Social Media Sharing buttons
- If you lot desire the buttons to seem at the halt of the post , glue this code earlier or later on
- If the bar overlaps alongside the post content , in addition to hence alter 35px to a higher value.
So these were the steps for adding the horizontal social buttons bar on Blogger. Using this bar it is also useful equally it could assistance you lot to instruct to a greater extent than social traffic for your blog.
Advertisement. Scroll to continue reading.Advertisement. Scroll to continue reading.Advertisement. Scroll to continue reading.