Posts Tagged ‘MyBlogLog’
Build a classic MyBlogLog widget
In this post I will show you how I created my custom widget showcasing mybloglog readers.
In your function.php file add this simple line of code:
<?php // MyBlogLog function MyBlogLogWidget() { ?> <script type="text/javascript" src="http://pub.mybloglog.com/comm2.php?mblID=ReplaceWithYourID&c_width=220&c_sn_opt=n&c_rows=6&c_img_size=h&c_heading_text=&c_color_heading_bg=e0e0d4&c_color_heading=E8A02C&c_color_link_bg=e0e0d4&c_color_link=d54e21&c&c_color_bottom_bg=e0e0d4"></script> <?php } //register the sidebar 'the widget name', 'the widget function'// register_sidebar_widget('MyBlogLog Widget', 'MyBlogLogWidget'); ?>That’s it, just replace the “ReplaceWithYourID” with your mybloglog ID. You can also change the width at c_width=220 to what ever you like.
If you look closely at the code you may also see color codes, you may change them to corresponding hex codes, for example: c_color_bottom_bg=e0e0d4 is the color for the bottom background. e0e0d4 is a light gray,
Click here to continue reading