<g:plusone size="Tall" expr:href="data:post.url">
</g:plusone></td>
</tr>
<tr>
<td>
<p style=" line-height:0px; font-size:10px; font-weight:bold; text-align:center;"><a style="color:#D3D3D3;" href="http://www.mybloggertricks.com">Widgets</a></p>
</td>
</tr>
</table>
</div>
</div>
4. Save your widget and drag it just below the post body as shown below,
[a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhljA-ZiWiGbWljNBkDLaZAgjgCJ5Ug4VI9wluO-UBZ_9mGvMwJe8xy2hbKmYvK8qzjB_XMRaOsUASUINka59lR-0CV8XxzXkl5HBEhNBr9ihavqHsez-pwJrP4JFp7cv9PYgjP9rTTG5k/s1600-h/floating-widget%25255B6%25255D.gif"][/a]
5. Now finally Click the save button at the top right corner and you are all done!
[a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigQi0eiacFIrxCzmrgyKgA4xgWHulqlG2Uv-gtO1Ec3zUoIMxEhLn6VCqa94t2xY8WKGuL2TiFFf09zpi0k_BCf_we7SLTBM9SR0Jfcq5-Sr7QpGpNeLdl348ts-JlqpH_FOiwUsCxP8o/s1600-h/save-button%25255B2%25255D.gif"][/a]
View your blog to see it hanging just to the left of your blog post body.
Customization
To align the widget more towards the left or right then edit this value margin-left:-70px; Decreasing this numeric value will shift the widget to the right and increasing the value will shift it to left.
To Change the background colour of the floating widget then change this background:#fff;
Use our [a href="http://www.mybloggertricks.com/2008/01/color-code-generator-and-color-wheel.html" target="_blank"]color generator[/a] or [a href="http://www.mybloggertricks.com/2009/10/embeddable-css-color-chart-table-for.html" target="_blank"]colour chart[/a] to select a colour.
If you wish to show the widget only on post pages and not the homepage then follow these steps.
Give this floating widget a temporary title then do this
- Go To Blogger > Design > Edit HTML
- Backup your template
- Check the Expand Widgets Templates Box
- Search for the title of the widget
- The code for the widget will look something similar to this one,
<b:widget id='HTML8' locked='false' title='WIDGET-TITLE-HERE' type='HTML'>
<b:includable id='main'>
bla bla bla bla
</b:includable>
</b:widget>
Once you find the title then add the following two green bolded codes just below and after the bolded black text. For example if you wish to show a widget at Homepage only then do this,
<b:widget id='HTML8' locked='false' title='WIDGET-TITLE-HERE' type='HTML'>
<b:includable id='main'>
<b:if cond='data:blog.pageType == "item"'>
bla bla bla bla
</b:if>
</b:includable>
</b:widget>
Save your template and you have successfully stopped the widget display on homepage and allowed it on all post pages. For learning more about how to control the widget display then read:
- [a href="http://www.mybloggertricks.com/2011/01/how-to-show-and-hide-widgets-in-blogger.html" target="_blank"]How To Show and Hide Widgets in Blogger?[/a]
If you liked this widget then please try tweeting and sharing this post using this new widget to your left. :) Peace and blessings brothers and sisters.
Post a Comment