Showing posts with label coding. Show all posts
Showing posts with label coding. Show all posts

02 April 2012

How to Fix Rich Snippets "Missing Field: Updated" Error in Blogger

If you've stumbled unto this page, you're probably having trouble clearing some errors when you run the Rich Snippets Testing Tool. If one of your errors happens to be a "Missing Field: Updated" Error, then you've come to the right place. I have a Blogger Blog with a customized template and the information I am going to share has worked for me.

Firstly, here is the link to the Rich Snippets Testing Tool. Just click on the link and enter your URL to see how your site appears.

Second, after you have connected your blog to Google +, if you have been having any difficulties with trying to verify your blog authorship, your author profile photo does not show, one of your commenter's photos shows instead, or if you have any Hcard errors, you might want to go to the following site, it helped me clear-up those problems.

Now, onto the "Missing Field: Updated" error...


11 June 2010

How to Make a Badge for your Blog

I did a lot of research on this several months ago, but never got around to sharing what I discovered. So, I will take this opportunity to reveal the fruits of my labours. I wrote this article, so you can copy the code from my site and then just input the information for your particular site. Once your values are input, you should be good to go.

As you may notice, the code below is in two sections. The first section contains the code for the clickable image that is displayed on your site. The second part of the code is for the text-box and the code your readers will use to display your badge.

Okay, once you have an image you want to use, let's get started...

11 April 2010

How to Use Jump Breaks in Blogger

Have you ever gone to a site and seen those "Read More-->>>" links? Well, this is going to tell you how to put these in your posts. These jump breaks are very popular in SEO circles as a way of getting your visitors to click-through to an interior page on your site. However, I plan to use them to help speed-up the loading of my main page. What I'm planning on doing is increasing the number of posts that appear on the main page, but I really don't want to increase the loading time of the page. This being said, I plan to add these little breaks to my older posts; thereby, giving more exposure to my posts, while not compromising the load time.

03 April 2010

How to Make your Blog Mobile-Friendly

For the past several weeks, I have been working on a new template that will hopefully make my site load faster. As a result, I have also been searching for ways to make my site more user-friendly and the one thing that never even entered my mind before today was: mobile users. With this thought in the back of my mind, I tried to find a place where I could test my site and see what it would look like on a mobile phone. Well, what I found was not very good and to sum up my viewing experience...yuck!

28 March 2010

How to Enable Printer Friendly Pages in Blogger

As I was going through and reading the blogs I follow, I noticed that one of them had a pretty nifty (I know, dated saying), button on their site; it was a "Print this Page" button. Basically, what this does is when you press the button, only the blog post and the comments will print out. The rest of the site, including the sidebars, header, and the footer are not printed. This allows the reader to print out an article that interests them, without having the entire blog printed.

So, since several of my articles are recipes and how-to's, I decided that it would be nice to enable this feature on my site. With this in mind, I went in search of some code and then began tweaking it on my test blog. After I got the actual button positioned and the code in place, I started to run tests in Firefox to see if it actually worked. I hit print preview and I noticed that whatever I did, only one page of my article would appear. No page two, no comments.

After several hours of trying to figure this thing out, I eventually ran across a posting in a forum which stated that this is a known issue in Firefox, but in IE or Chrome, it prints the entire post w/ comments. I switched over to IE and sure enough, it worked just fine. So, I now needed to search for a fix and after about thirty minutes of searching, I found one. Although this feature is not yet available on this site, I have incorporated it on the new template I am working on and I am hopeful to be able to transfer my blog to that template within the next few days.
If you're interested, here is the code I used WITH the fix (overflow:visible;) and the IE fix in bold and enlarged...
<style type='text/css'>
@media print{
body{margin: 10px; background-color:#FFFFFF; background-image:none; 
font:color:#000000 }
p{font:14pt Arial;}
#main-wrapper{ overflow:visible;width:100%;}
.post
#header{ display:none;}
#left-sidebar-wrapper{ display:none;}
#right-sidebar-wrapper{ display:none;}
<!--[if !IE]>
#footer-wrapper{ display:none;}
.fineprint{ display:none;}
.comment-footer{ display:none;}
.feed-links{ display:none;}
#backlinks-container{ display:none;}
#blog-pager-newer-link{ display:none;}
#blog-pager-older-link{ display:none;}
#blog-pager{ display:none;}
<![endif]-->

This should be placed directly before the </head> tag.

I still need to add additional formatting to this code, but it works.

Oh, here's the code for the button
<form><input onclick='window.print();return false;'
type='button' value=' Print this Article '/></form>

If you are currently having this same problem, here is the link to the site where I found the fix... forums.cnet.com

Can't you tell that this post was thrown together at the last minute??
Related Posts Plugin for WordPress, Blogger...

Google Analytics