After showcasing the redesigned mobile view of Ogbongeblog yesterday when I published “how to make addynamo ads appear on blogger mobile view“, I have received mails from some blogspot users, asking me how I make the related posts widget to appear on the mobile view of my blogger blog.
Well, you can get it done if you’ve switched to blogger custom mobile template and would be easier for you if you’ve installed my related posts widget to your blog. All you will just need to do is to carefully add some few lines of code to your blog’s html.
How To Get Started
*** Change the width in the css from 350px to 300px; perfect for the screen of most mobile phones.
==> If you have not enabled custom mobile template, login to your Blogger dashboard, go to “Template“. Under “Mobile“, select “Yes. Show mobile template on mobile devices” and choose “Custom” from the “choose mobile template” dropdown box and save your settings.
==> Now, we need to find the code for the default mobile share buttons so we can place the related posts gadget directly below it.
==> So, back up your template and go to “Template” > “Edit HTML“
==> Click inside the HTML and use CTRL F to find <b:if cond=’data:top.showMobileShare’>
==> Carefully find the ending </div> as seen in the screenshot below
==> Directly below it, copy and paste the code below:
<!– Related Posts with Thumbnails Code Start–>
<b:if cond=’data:blog.pageType == "item"’>
face=’Arial’ size=’3′><b>Related Posts:
cond=’data:blog.pageType == "item"’>
<!– Related Posts with Thumbnails Code End–>
==> Save your template
==> View any blog post that has labels and you should see related posts links appearing right below the mobile share buttons.
Note: If you did not add a label (category) to a post, you might not see the related posts below it.
Did it work for you? Please, let me hear from you via comments.