Showing posts with label HTML. Show all posts
Showing posts with label HTML. Show all posts

Dec 21, 2017

How to Get Your Images Sharp on Blogger using IMGMAX Parameters

DISCLAIMER: The images in this post are optimized for a Retina display. If you are viewing this post on a standard screen, the sharpness and quality differences will be less obvious.


If your blogger images are only sharp when viewed "at full size" (when you click on them and load them in a new window) you probably have some code in your image url that is causing it.

Here is an example of the SAME photo url rendered differently in the same blog post:

SHARP (look at the watermark):

BLURRY (look at the watermark again):

What is the difference?

This is the image source code for the first (sharp) image:
src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhO3whVvjkzF2F-Irq11HoR-Zaqvb0Dmu8JfOHD1wsNzh_F3-qWIThPUiroDEJ25GhqdHXD-33wiaP3qr-sftDZKAaaLD98tPhOrGDHxGIRhw6pATEcqVAGrtTTCeUo46Bqq1uLGnOyZ4/s640/Sawdust-is-my-glitter-filled-ornament-.jpg?imgmax=1600"

This is the code for the second (blurry) image:
src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhO3whVvjkzF2F-Irq11HoR-Zaqvb0Dmu8JfOHD1wsNzh_F3-qWIThPUiroDEJ25GhqdHXD-33wiaP3qr-sftDZKAaaLD98tPhOrGDHxGIRhw6pATEcqVAGrtTTCeUo46Bqq1uLGnOyZ4/s640/Sawdust-is-my-glitter-filled-ornament-.jpg"

 The image URL is the same, but the blurry image no longer contains the "imgmax" parameter at the end of the url (When I compose in live writer or mars edit this suffix is automatically added)

If the size of you original image displayed doesn't match the number (or if that number is missing) blogger can mess up the proper display size making the images look blurry.

THAT NUMBER HAS TO BE THE ACTUAL WIDTH OF THE PHOTO.

So if you are displaying an image that is uploaded at 2200px wide you should have ?imgmax=2200 on the end of the url.

Here is another example:

This image was originally uploaded at 1200px wide.  THIS is the original.

 This is the image displaying at the "medium" blogger setting with NO tag:

This is the image with the CORRECT imgmax tag ("?imgmax=1200"):

And this is what happens if I have the incorrect max width (in this case I used "?imagemax=100"):


It can be super frustrating if you don't know why your images are blurry, but once you do, it is a pretty easy fix!

Apr 30, 2017

How to Install The Facebook Tracking Pixel On Blogger

How to Install the Facebook Tracking Pixel On Blogger Blogs
If you are on Facebook and are interested in tracking conversions to your blog from ads or post boosts, you are going to want to install the Facebook Pixel.   If you have never heard of the Facebook Pixel, you can read the quick summary directly from Facebook explaining how it works.

The problem is that the code they generate for users DOES NOT WORK directly on Blogger.

Installing the Facebook Pixel Tracking Code will give you an error that won’t all you to save the code in your template.   Luckily there is a work around that will convert the code to something more Blogger friendly.

How to Install The Facebook Pixel into a Blogger Blog

Aug 26, 2016

How to Confirm Google Analytics is Installed Correctly

How to confirm GA is correctly installed on your blogGoogle Analytics is the gold standard of traffic monitoring software.  When site owners talk about their monthly page views or uniques, they are almost always referring to their numbers form Google Analytics.  This tracking software is the most accurate and therefore should be installed on your blog if you ever need access to your traffic statistics (don’t EVER use numbers from Blogger!)

However.. this accuracy is only true if you have Google Analytics installed CORRECTLY on your site.   This means the tracking script should be installed only one time, and in the correct location on the page.  If you have duplicate versions of the tracking code or have it installed too early in your head section, you can get falsely inflated analytics.

To demonstrate just how dramatic this inflation can be, I did an experiment on my own site.  I installed a second tracking code into my html and then watched my traffic over the next 4 days.  This is what happened:
Pageviews
My page views doubled and my bounce rate dropped to about 10%.  
As much as I wish those numbers were true.. They are completely an artifact of the duplicated code. 

Jul 21, 2016

How to Add An Image Slider to Posts on Blogger


How to create a clickable image slider in a blogger post

Slideshows have been the hot new fad on blogs lately.  Many blogs have them on the sidebar, in the header and within the post content itself.  They are a great way to add a lot of images to a single post without making readers scroll and scroll to the bottom of the page.  They also can help loading time since they only pull one image at a time.  If the images are clickable you can also use sliders as a way of rounding up your old content.. almost like a fancy ‘navigation’ tool.

Jul 19, 2016

How to Paginate A Blogger Post


How to paginate long blogger posts into mutliple pages

Over a year ago, I shared a tutorial on how to split you Blogger post into multiple pages.  

It was an okay way of paginating, but the setup was clunky.  There were a lot of moving parts. It was far from ideal for beginning bloggers.

Jul 15, 2016

How to Add Breadcrumb Navigation Menus At the Top of Your Blog Posts

How to Install breadcrumb navigation on your blogger blog
Breadcrumb navigation is becoming a more and more relevant when it comes to a blog’s user friendliness (which trickles down to search engine friendliness).   Most SEO and marketing experts agree that breadcrumb paths are a positive addition to almost any site, especially those where the content can be categorized with some sort of hierarchy. Today we’re going to discuss exactly what breadcrumb navigation is, why it is important and how you can install it on your Blogger blog if you don’t have it already. 

What is breadcrumb navigation?

Breadcrumb paths are the horizontal menus found at the top of a post or page that show the hierarchy of post content.  On Blogger, the cascade is typically:  Home >> Post Category >> Post Title

The term “Breadcrumb” is a homage to the fairy tale Hansel and Gretel where the children left a trail of breadcrumbs to find their way out of the forest.  In that same way, your breadcrumb navigation shows the path of your content. (Although not necessarily in the order you actually got there.) It is more of a roadmap of your site structure to help users navigate through your content.

I have been using breadcrumb navigation on my DIY site for a while now and it has been great for reader retention and increasing pages per session.  This is what they breadcrumbs look like on my blog:
Breadcrumb menu example



Why are breadcrumbs so important? 

Breadcrumb navigation is extremely important especially on large commerce sites.  For example, Amazon prominently uses breadcrumb paths on their site:
Amazon breadcrumb path
and even though the structure of most blogs is not nearly as complex as Amazon, it still can be very valuable for a good user experience and SEO.



BENEFITS OF BREADCRUMBS FOR USER EXPERIENCE:

1. Aids in navigation: Having a breadcrumb path allows for easy discovery of related content. Since most blogs are written chronologically, the “next” and “last” post navigation options may not result in related or relevant content.  They are typically easy to understand for most users (and not as difficult to find as your menus in your header or sidebar) and don’t take up a lot of space or slow down you site.

2. Reduces Bounce Rate: Having a breadcrumb trail available has been proven to reduce a page’s bounce rate. By giving users an easy way to find related content they are less likely to leave after they have finished reading the content on the current page. I also increases time on site and pages per session.

3. Gives user a frame of reference: Many site visitors will not land on a home or menu page but will instead find themselves on a single post.  A quick glance at the breadcrumb path makes it quickly obvious where exactly they are located on your site, relative to the rest of your content.  Additionally, the label the current post is categorized under provides insight into the type of content available on your site.

4. Allows for easy back tracking: Breadcrumb navigation makes it easier for a user to backtrack to a parent directory (or in blogger’s case, to an entire category label).  Since breadcrumb paths tend to narrow down content by increasing specificity, they allow users to ‘back out’ of a post into a larger segment of your site’s content. 

BENEFITS OF BREADCRUMBS FOR SEO:

All of the benefits for user experience chould technically also be listed under SEO benefits, since user friendliness and engagement is such an important factor when it comes to a page’s search engine rank.  There are also some ADDITIONAL SEO perks from having breadcrumb navigation available on your blog independant of user experience.    

1. SERP results markup: Google recently announced that they are updating the MOBILE algorithm to 
show breadcrumb paths instead of URLS on SERPs (Search engine results pages).  To insure your links show up that way requires some additional RDFa markup separate from the HTML for navigation.

With that markup search results now look different on mobile.
Google Fits Breadcrumbs into Search on Mobile 2. Keyword Density: Listing the keyword rich post and category names on each page increases the keyword density on your site.

3. Internal Linking: This navigation system links together similar content via the same category label. These additional links are beneficial SEO wise.

How do you install the breadcrumb navigation to your blog posts?  

It isn’t super difficult if you have a standard template.  Custom templates may be slightly more complicated, but for most blogs it is a few simple lines of HTML added to your template.  This is what this blog’s breadcrumb menu looks like using this tutorial.  Simple breadcrumb navigation

INSTALLING BREADCRUMBS ON A BLOGGER BLOG:

From your Blogger dashboard go to Template and create a backup. Next click on “Edit HTML”   Click INSIDE the window and search for: 
<b:include data='top' name='status-message'/>
Remember you need to click ON THE CODE and THEN hit “Control-F” or else you won’t actually search the HTML! 

Now Replace the highlighted text with the following (we are adding the navigation menu to the top of your posts):
<b:include data='top' name='status-message'/>
<b:include data='posts' name='breadcrumb'/>
Now you want to find this part of your code:
<b:includable id='main' var='top'>
Replace it with the following  (What we are doing here is adding code to generate the actual text in the menu itself) :
<b:includable id='breadcrumb' var='posts'>
<b:if cond='data:blog.homepageUrl == data:blog.url'>
<!-- No breadcrumb on home page -->
<b:else/>
<b:if cond='data:blog.pageType == "item"'>
<!-- breadcrumb for the post page -->
<p class='breadcrumbs'>
<span class='post-labels'>
<a expr:href='data:blog.homepageUrl' rel='tag'>Home</a>
<b:loop values='data:posts' var='post'>
<b:if cond='data:post.labels'>
<b:loop values='data:post.labels' var='label'>
<b:if cond='data:label.isLast == "true"'>  » <a expr:href='data:label.url' rel='tag'><data:label.name/></a>
</b:if>
</b:loop>
<b:else/>
»Unlabelled
</b:if>
» 
<span><data:post.title/></span>
</b:loop>
</span>
</p>
<b:else/>
<b:if cond='data:blog.pageType == "archive"'>
<!-- breadcrumb for the label archive page and search pages.. -->
<p class='breadcrumbs'>
<span class='post-labels'>
<a expr:href='data:blog.homepageUrl'>Home</a> » Archives for <data:blog.pageName/>
</span>
</p>
<b:else/>
<b:if cond='data:blog.pageType == "index"'>
<p class='breadcrumbs'>
<span class='post-labels'>
<b:if cond='data:blog.pageName == ""'>
<a expr:href='data:blog.homepageUrl'>Home</a>
 » All posts

<b:else/>
<a expr:href='data:blog.homepageUrl'>Home</a> » Posts filed under <data:blog.pageName/>
</b:if>
</span>
</p>
</b:if>
</b:if>
</b:if>
</b:if>
</b:includable>
<b:includable id='main' var='top'>
Finally we need to format how the menu appears.  To do this you have to add the CSS (styling) to the text.  Find: 
]]></b:skin>
Paste the following immediately before it:
.breadcrumbs {
padding:5px 5px 5px 0px;
margin: 0px 0px 15px 0px;
font-size:95%;
line-height: 1.4em;
}
This is CSS markup and you can change the way your menu looks by changing this text.  This is just the most basic formatting, but feel free to play with this code if you are comfortable with CSS.

For example, here is a much more complicated CSS markup you could use instead:
.breadcrumbs {
font-size: 14px;
background: #eeeeee;
background: -moz-linear-gradient(top, #eeeeee 0%, #cccccc 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#eeeeee), color-stop(100%,#cccccc));
background: -webkit-linear-gradient(top, #eeeeee 0%,#cccccc 100%);
background: -o-linear-gradient(top, #eeeeee 0%,#cccccc 100%);
background: -ms-linear-gradient(top, #eeeeee 0%,#cccccc 100%);
background: linear-gradient(top, #eeeeee 0%,#cccccc 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#cccccc',GradientType=0 );
height: 25px;
line-height: 25px;
color: #454545;
border: solid 1px #cacaca;
width: 100%;
overflow: hidden; 
margin-bottom: 25px; 
padding: 0px
}
With that CSS this is what the menu would look like this on my blog:
CSS markup for Blogger Breadcrumb Menu

Depending on how comfortable you are with your template, you also can move your menu to different parts of your post.  I put mine under the title, but you could also put it in the footer or near the comments.  It really will depend on your layout.  The standard location is at the top of your post.

Now you should have everything you need to install this extra navigation option for your readers and will help drive those readers to all the other related content on your site.

Jun 19, 2016

How to Add RECIPE Rich Pins on Blogger

Recipe rich pins on blogger


I have previously shared a tutorial on how to add rich pins for articles to your Blogger Blog.  I have had a ton of positive feedback on that article, and since the majority of bloggers on Pinterest need article pins, it is relevant to most bloggers.  If you are a blogger who shares content on Pinterest, you want to have rich pins installed! 
There is a another subset of bloggers who could also use the additional resource of RECIPE rich pins.  Even if you only occasionally share recipes, it is a something you can use.  It is a little more complicated but it isn’t hard once you know what to do. 

Jun 3, 2016

Search Engine Title Swapping: Make Post Titles Appear Before Blog Titles on Google

Search Engine Title Swapping on Blogger to Improve SEO
How your blog posts show up in Google’s search results is extremely important.  Since search engines take into account how frequently a displayed listing is clicked when ranking content, you want to make sure that your search results accurately reflect what your post is about.  Since the most predominant part of a search result is the post title, ensuring that it is displayed in full is very important.  But by default, Blogger does not have your search listings formatted that way.  

May 27, 2016

How to Back Up Your Entire Blogspot Blog (Content, Template, Images and Widgets)

How to Back Up Your Entire Bloggger Blog
If you google “How to backup your blog” you will find 1000 tutorials.  But what I  have noticed about almost all these posts is that they are incomplete.  They either tell you how to backup your content (which is important! don’t get me wrong) or your template, but typically they don’t cover your entire blog. They don’t explain how to save a copy of ALL the stuff you want saved in case of a zombie apocalypse or nuclear war.  What would it take to rise from the ashes and build a new blog? THAT is what you are really asking when you say “How do I backup my blog?”

So today I’m going to cover all the things you can (and should) have copies off.. just in case something goes terribly wrong.

There are 4 main parts to your blogspot blog that you should be backing up: 

1.  Your content.  The HTML that makes up all of your posts and pages.

2.  Your template.  The code that packages up your content so nicely in your browser.

3.  Your images.   Contrary to popular belief, no, in fact your images are NOT backed up when you
back up your content.  Your images are actually hosted outside of your content and so if you want to make sure they are never lost, you probably want to keep a copy of each and every one of them.

4. Your HTML gadgets.  The content within your HTML gadgets (your sidebars and footers) floats in a strange “no mans land” when it comes to Blogspot.  It isn’t backed up with your template, nor is it backed up with your content.  Typically it wouldn’t be catastrophic to lose the little bit of HTML in your sidebars (usually it is images and text for things like buttons or ads or whatever you keep in your side bar). However, if you ever want to migrate to a new blog or new template, having a copy of those gadgets is a good idea.

How do you do it?  It is easier than you think.

May 6, 2016

How to Verify Your Blog in Webmaster Tools (and Set Your Preferred Domain)

Don't compete with your own site in the search rankings! Here is how you can verify your blog in Webmaster Tools and set up a preferred domain for double the google juice!
Last week I explained how to generate a sitemap and submit it to search engines in order to ensure you content was all being crawled. I mentioned that my preferred method of submitting site map was through the Webmaster Tools Sitemap tool.  After that post I had a few people ask about how to establish a Webmaster tools (which is now officially called “Google Search Console”) account for a Blogspot blog.

Because it does require inserting some code into your template, and because it turns out that you should actually be setting up accounts for multiple URLs, I thought it was worth an entire post.

Apr 21, 2016

How to Add Twitter Cards to Your Blogger Blog

How to install Twitter Cards On Blogger Blog
If you are a frequent user of Twitter, you may have noticed that some tweets containing URLs have a lot of extra information associated with them.

This is what a typical tweet looks like:
Tweet

But did you know your tweet could look like this (without actually changing your tweet at all)? 
Tweet with twitter card

These expanded tweets are called “Twitter Cards” and if you are a blogger they are a great way of getting you blog post tweets a little more exposure. When you have the Twitter cards code installed on your blog, any tweets with your blog's URL will also contain this extra image, title and summary.

They are sorta like Pinterest’s “Rich Pins” but for tweets.  (If you don’t have rich pins I also have a tutorial on how to install them)


To add them it is simple copy and pasting of some HTML code.  (Even a rookie blogger should be able to do this! Don't panic because it is HTML!)