Showing posts with label Blogger Customization. Show all posts
Showing posts with label Blogger Customization. Show all posts

Saturday, January 9, 2016

Using Bootstrap with Blogger Templates

Bootstrap logo
Well, some of you may have been waiting for my second part of the Wordpress vs Blogger review. But, I was sidetracked by a much more ambitious project - merging the dynamic Bootstrap web framework with Blogger. I knew initially that this would be quite a challenge to get it right - and was I correct in that assumption.

So just what is Bootstrap? You can go over to their site and read up, but, at a very high level it is designed as a starter kit for dynamic web UI layouts that utilize CSS and Javascript for a great user experience. If you've seen sites like this one, or this other one - you'll see how Bootstrap can be beautifully extended. In the case of Blogger almost all of their templates are very static and were designed in the 2005-2010 time frame. In the last few years the web has exploded with new, dynamic web frameworks that have reactive interactivity without page refreshes.

The easy path to my task would have been to strip out the entire Blogger template and add Bootstrap in its place as some of these template providers have done. But, if you read my Best Blogger Templates article you know that I am a stickler for keeping Google Blogger as pure to its original intent of a dynamic layout and user substitution of design elements vs a copy-paste of some Wordpress or other template like Bootstrap and just getting it to work.

If you want to try this I've at least laid down a path that will get you past the hardest parts (let me just say I spent days trying to get some of the Bootstrap basics up!)  The key to merging templates is trying to navigate the structures and naming collisions so that both can work. Some of the functionality simply won't work directly in certain cases (such as the header image gadget). But, a creative Javascript programmer could solve some of these small problems - and, in the interest of time I needed to get the basics completed. If you want to try this you must understand web page html basics or otherwise you'll be lost. So, let's get started.

Stripping Out Blogger Templates

The first step is to pick a basic Blogger template and strip out a significant portion of the layout without damaging the Blogger functionality. I chose the Simple template as a the easiest path. What we'll be doing is removing most of the CSS, div tags and Variables to reduce the Blogger template down to its essential layout components so that both the Layout editor and Template editor can still work. (In many external Blogger template seller sites that have modified templates for sale or are free, the designers just strip away everything and render the Blogger editors basically useless).

This might be the hardest part of this tutorial for you. So, be aware you might want to practice on a test blog first. Remember, the goal is to keep Blogger functionality (template design and layout gadgets). Given that, the first step is to set the template to it's simplest form.  Be sure you started with the basic white Simple template. Choose the 'Template' main menu item and then click the 'Customize' button:

Setup the Blogger template


Set the template to the simplest single page and column layout pressing the 'Layout' menu like this and press the 'Apply to Blog' button on the upper right:

Set the basic template layout in Blogger

Go 'Back to Blogger' and now select the 'Edit HTML' button. You will now be within your template. Find the section near the top called <b:skin> and expand it by clicking on the small black arrow next to it. Using your mouse highlight everything from line 27 down to about line 488 in my example (your line number might be slightly different) down to the ]]></b:skin> section and delete it - insuring you don't delete the ]]></b:skin> tag itself. The starting line you highlight must start with the <Group tag as show in my image. (Note: we're keeping the first few lines of the skin for later work). We're deleting all of the template's CSS here:

Remove most of the Blogger CSS

End of the Blogger CSS section

Press the 'Save Template' button. If you made an error the template editor will let you know. Next, find the <b:template-skin> section and expand it in the editor. Remove all of the CSS between the <![CDATA[ line and the ]]> line (but not removing those 2 lines) like this:


Removing the template skin section

Press the 'Save Template' button again.

Next, we're going to remove the core template <div> tags that are outside the gadgets (note that gadgets themselves contain <div> tags as well but we'll keep those for now).  This is a very tricky step but you'll find that the template editor is your friend here. As you remove <div> tags the editor will highlight the ending </div> tags that are mismatched.

The key to this step is that certain elements of the template need to stay in place so that the layout editor continues to function. The best way to do this is to remove small sets of <div> tags and then try to save to find which ending </div> tags to remove. The first set to remove is everything just after the Navbar gadget up to the <header> tag (the first tag should be <div class='body-fauxcolumns'>):

Removing the div tags in the Blogger template

Removing divs carefully

You'll have to try and keep saving the template after you delete this section above until you find all of the ending </div> tags to remove farther down in the template (be sure to keep the ending </header> tag. Continue to remove sections of <div> tags being very careful to keep any parts called <b:section and the lines in-between to the ending </b:section like this:

Finding sections of div tags to remove for Bootstrap in Blogger

You're going to keep doing this through the template until all <div>s are gone by continually saving and removing (but keeping any div tags that are within a <b:widget section). Now that you've completed this step your template is now fully clean but should be able to still be functional in the main menu Layout section (try adding and deleting some Gadgets to verify). Also, the 'Customize' button should still work partially to add and remove right or left hand columns or footers in the 'Layout' section without any issues. Be sure to verify this. Congrats! You now have a Bootstrap ready template.

Adding Bootstrap Components to Blogger

Bootstrap utilizes the JQuery Javascript engine for part of its functionality as well as its own Javascript library. What we'll be doing in this step is adding the javascript library links and the Bootstrap CSS to the template.  One BIG problem to solve in this step is the naming collision of the Bootstrap CSS components with the Blogger names. I will get to that in a bit.

Meanwhile, just add these library components just before the ending </body> tag of your clean template:

<!-- jQuery (necessary for Bootstrap's JavaScript plugins) --> 
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js'/>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script crossorigin='anonymous' integrity='sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS' src='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js'/>

like this:

Adding the Bootstrap javascript libraries in Blogger

Go ahead and save the template being sure to test that you can preview it without any errors (yes, the template will look a bit odd at this point.)

Next step is to add the header information. Copy these  lines and paste them just after the <head> tag right at the top of the template as shown below:

    <meta charset='utf-8'/>
<meta content='IE=edge' http-equiv='X-UA-Compatible'/>
<meta content='width=device-width, initial-scale=1' name='viewport'/>
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->

    <!-- Bootstrap -->
<!-- <link crossorigin='anonymous' href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css' integrity='sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7' rel='stylesheet'/> -->
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->

like this:

Adding the Bootstrap header links and meta tags

These are the necessary mods for the mobile and browser compatibility settings. You've probably noticed that I commented out the bootstrap.min.css code here. This is because of the naming collisions with Blogger I noted earlier. What we're going to do is to get a copy of this CSS code, modify it and then place it in the <b:skin> section of Blogger's template.

Modifying Bootstrap's CSS Code

The best way to do this is to copy the Bootstrap CSS link of the bootstrap.min.css above (click on this line to get to the link).  You should see the Bootstrap CSS in a new browser window now.  Do a Select All and copy/paste this code into a text editor. Use the editor to do a global replace of any text with 'navbar' to 'navbar2'. You can see where my first instance of 'navbar' was changed to 'navbar2' here (there are over 50 more instances):

Replacing the navbar keyword in the Bootstrap CSS

The reason we're doing this is due to the 'navbar' name in Blogger. It is different than Bootstrap's navbar so we have to alter the Bootstrap name. What this implies is that any time you add a Bootstrap navbar to Blogger you'll have to alter all of the navbar names to navbar2 which I'll show in a bit.

Next, just copy the modified CSS code from your text editor and paste it into your Blogger's <b:skin> section just like this:

Add the Bootstrap CSS to the Blogger skin section of the template

Save your template now and make sure it works again by previewing it, checking if the Layout editor works and the template designer can alter your columns and footers.

Congratulations!! A ton of work has paid off! You now have a first functioning Bootstrap template.

Add the Bootstrap Navbar and Jumbotron

"Wait a minute!" you might ask! "I don't see anything yet!"  That's correct. You now need to add the basic Bootstrap HTML to your template. I'm assuming you understand HTML fairly well so that you can add the Bootstrap components you desire. I'm just going to place an example here by starting with the Bootstrap navbar and jumbotron sections.

One of the best parts of Bootstrap's capabilities is the flexible navbar and upper image contained in the template when you view it on different devices. This is a very simple HTML addition now - just adding the <nav class section and <div class='jumbotron' section. Let's start with the navbar.

I've chosen a dynamic navbar from the Bootstrap example webpage. You could easily choose a different one if you like how it functions. All you need to do is copy and paste the HTML code. The Bootstrap dynamic navbar scales nicely when you view the Blogger page on a full PC screen or on a small smartphone.  This particular code needs to be pasted in the Blogger template just after the <body tag and the Blogger navbar and this section right at the top of the template as shown below:

    <!-- Bootstrap navbar -->
<nav class='navbar2 navbar2-default'>
<div class='container-fluid'>
<div class='navbar2-header'>
<button aria-controls='navbar2' aria-expanded='false' class='navbar2-toggle collapsed' data-target='#navbar2' data-toggle='collapse' type='button'>
<span class='sr-only'>Toggle navigation</span>
<span class='icon-bar'/>
<span class='icon-bar'/>
<span class='icon-bar'/>
</button>
<a class='navbar2-brand' href='#'>Project name</a>
</div>
<div class='navbar2-collapse collapse' id='navbar2'>
<ul class='nav navbar2-nav'>
<li class='active'><a href='#'>Home</a></li>
<li><a href='#'>About</a></li>
<li><a href='#'>Contact</a></li>
<li class='dropdown'>
<a aria-expanded='false' aria-haspopup='true' class='dropdown-toggle' data-toggle='dropdown' href='#' role='button'>Dropdown <span class='caret'/></a>
<ul class='dropdown-menu'>
<li><a href='#'>Action</a></li>
<li><a href='#'>Another action</a></li>
<li><a href='#'>Something else here</a></li>
<li class='divider' role='separator'/>
<li class='dropdown-header'>Nav header</li>
<li><a href='#'>Separated link</a></li>
<li><a href='#'>One more separated link</a></li>
</ul>
</li>
</ul>
<ul class='nav navbar2-nav navbar2-right'>
<li class='active'><a href='./'>Default <span class='sr-only'>(current)</span></a></li>
<li><a href='../navbar-static-top/'>Static top</a></li>
<li><a href='../navbar-fixed-top/'>Fixed top</a></li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container-fluid -->
</nav>

notice that I have altered any Bootstrap reference of the word 'navbar' to 'navbar2' in this code - (look for the section I've boxed in below to see where you should paste the navbar code underneath):

Pasting in the Bootstrap navbar into the Blogger template

That's it! Now take a peek at the top of your template.  It should look like this:

Wide menu in Bootstrap
The best part is now when you alter your browser window down to a small size you should see the upper right menu button drop down the very same list that was horizontal in the wide screen mode:

Dropdown mobile menu for Bootstrap
At this point the actual menu items would have to be altered directly in the HTML code above to add your menu items and associated page links. Connecting it to the Blogger template editor would be tougher and I just wanted to get you based functionality first here.

Finally, in this tutorial I'll also add the jumbotron component. This is a large image that sits just under the navbar (if you have one) and will dynamically scale and scroll when you adjust your browser window. I found a simple image out on the Flickr Creative Commons for this particular test. If you've read my previous posts you need to add your desired image to Blogger's image pool first. All you have to do is add your image to a new Post, save it and publish it. Then revert it back to draft status. Your image is then saved on the Blogger network no matter if the post is active or not. Go back into your post and view the HTML. The image will have a long link like this - https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhfCBHS6127WFiLM7TfPWmU2lJ0jCZ4uWEHypE1TbWvQu4PRP7DEuhnzc9ekXli2Q_3NZ4eMRoVPbUsyMih76HlHR731UCdBvrGceVdKPCmzooC34dmVF431i9o_h-aFGKsbhC_ZIUCGU/s320/BloggervsWordpress.jpg.

Once you've uploaded the image you can now use this in the Bootstrap jumbotron component. What you'll want to do is to copy and paste this code just after the <header> tag and before the <b:section class='header' in the Blogger template like this:

     <header>

<!-- Main jumbotron for a primary marketing message or call to action -->
<div class='jumbotron'>
<div class='container'>
<h1>Hello, world!</h1>
<p>This is a template for a simple marketing or informational website. It includes a large callout called a jumbotron and three supporting pieces of content. Use it as a starting point to create something more unique.</p>
<p><a class='btn btn-primary btn-lg' href='#' role='button'>Learn more</a></p>
</div>
</div>

<b:section class='header' id='header' maxwidgets='1' name='Header' showaddelement='no'>

Go ahead and save the template but not that this won't show the image yet. We'll place the image link into a jumbotron CSS section.  This CSS section needs to be copied and pasted into the <b:template-skin part of the Blogger template:

.jumbotron {
position: relative;
background: #000 url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2JzJK4CdKz-2QsHaRJesctPfHVR8JSQDac0SDIhNeqvs5Jj6B8NhW0bD5x2XsqJ21wKo2_WfFwT_tRKYCKEKxsufNin-hUAKe5pZ50fvuYWIlSlMksXswn0ohQFOaKCPYsMal_D8PBveh/s1600/NPineMain.jpg") center center;
width: 100%;
height: 100%;
background-size: cover;
overflow: hidden;
color: #fff;
}

In this code you can see the link to my guitar image with the url() section in the background. Be sure to replace your link with mine. Here is where I pasted it:

Adding the Bootstrap jumbotron CSS section

Save your template. We are just about ready to go. The last thing I want you to do is to add the single Bootstrap  <div class='container'> section around everything under the </header> tag in the Blogger template.  Just add it right after the </header> tag and place an ending </div> tag just after the </footer> tag at the end of the template.

That's it for Part 1!!!  You now have a template with a scalable navbar and jumbotron image!  The entire image and template should slide dynamically up and down when the menu is selected in a small mobile view.  Here are my examples and here is a link you can try: dyplate.blogspot.com. Enjoy!!!

Bootstrap full window view in Blogger


And now a mobile view:

Bootstrap mobile view with menu drop in Blogger

Posted By my pwiki2:10 PM

Sunday, August 2, 2015

Blogger vs Wordpress

With the large number of free blogging sites out there, two still remain at the top for informational blogging - Blogger and Wordpress. Yes, there are other free blogging sites such as Tumblr, Weebly and Wix - but, they are not really my focus (other than Tumblr which I use for more visual blogging than informational blogging).

Invariably, however, someone will always ask me what's better - Blogger or Wordpress?  By Wordpress here I mean the free online version at Wordpress.com and not the software you download from Wordpress.org and manage yourself on external hosting platforms such as Bluehost (that would be like comparing apples to oranges - running Wordpress on a custom host is really more like building your own website except with a content tool installed). Of course, 'better' is a relative term depending on what you want to do with the tool. Given that, though, let's take a deeper look at both.

Search Engine Optimization - SEO

First, I have to call out immediately that within the last 1 to 3 years you get no advantage for SEO utilizing either tool. Google has completely changed its strategy so that internal formatting such as tagging, long-tail keywords and metadata within the HTML is not nearly as important as the authoritative content you write and highlight. You can build rank directly with content, so, I'm not going to dig deep into the template structures other than to reinforce that content rules today. (For more information  I agree with this SEO article generally but not as much with the keyword sections). This is an even tie for both tools.

Templates

Probably the most visible comparisons between Blogger and Wordpress are the out-of-the-box templates. Clearly, Wordpress has the advantage for a much better and beautiful set of templates. In fact, I've always been surprised that Google hadn't upped its template library for Blogger in the last 5 years.

Sample of Wordpress.com default templates.
As you can see above the design flare of Wordpress outweighs Blogger templates shown below (tough to see the details here but a sample of what you get) :

Sample of Blogger default templates
In fact, if you saw my earlier post on creating a Wordpress template in Blogger you now understand the motivation of attempting that. The reality is that both sites allow easy template substitution without impact (if you use Blogger out-of-the-box). But where Wordpress really shines is that they also offer professional paid templates that are already integrated into the toolset. 

You can buy 3rd party Blogger templates but you have to integrate the template manually, and, as I noted in a previous post, most do not follow the Blogger template patterns. For ease of use and professional style - Wordpress.com wins on templates.

Layout Customizer

Both Wordpress and Blogger have layout editors to assist with the look-and-feel of your site. In Blogger it is very easy to find in the left menu under the 'Layout' item. In Wordpress you must first go into your Site and then select the 'Customize'  left menu. The first noticeable difference is that Blogger has a much more flexible layout editor. You can drag 'gadgets' around and arrange them positionally within the chosen template. The default templates also allow you to rearrange the basic structure of left and right sidebars, footers and headers.


Wordpress, however, has a much more constrained view in its Customizer by only allowing you to work within the theme (a template) you've picked. The designer of the theme sets the positions and views so that if you want a different look you must pick or purchase a new template.  You can see below that I can modify components of the layout but not actually rearrange it.

Some Wordpress themes have more options that allow you to change and update the parameters, but that is theme/template driven and not layout driven like Blogger. If you really need to alter the theme then you have to pay Wordpress a monthly fee to get more custom design access. In the free version you are constrained by the theme directly.

One additional feature I should mention about Blogger is the template designer selected from the Template menu item. I mentioned that Blogger allows more layout flexibility than the Wordpress Customizer. In the Template Designer you not only have the ability to set fonts, colors, accents, and widths (which Wordpress can do too), but to rearrange sections in the Body and Footer independent of the template you choose. (Please read my article above about 3rd party Blogger templates! Most of these types of sellers do not create them to Google's specifications and limit or disable this functionality).

Blogger template designer

You can see that sidebar and column layouts can be selected for all of the templates not just by theme/template. In my opinion Blogger wins on this feature-function with the slight edge on separating the layout from the template/theme - granted, finding templates that look as nice as the free Wordpress ones is difficult.

Gadgets and Widgets

Blogger is all about gadgets whereas Wordpress is all about widgets. In essence they are really the same thing. They are components you add to your template to enhance functionality with lists, stats, links, social media, calendars, profiles, etc. The functionality to add these to both tools is nearly identical.  The most common components bloggers add are search, tags, archive links, top posts, profiles and some social media plug-ins for sites like Facebook or Twitter.  

Blogger out-of-the-box gadgets are easily accessed from the Layout where you can simply select 'Add a Gadget' and select from this sample list:

Blogger gadgets

All-in-all they're very functional and cover most of the cases bloggers need. However, Blogger also has a 3rd party set of gadgets (919!!) that are simply awful and haven't changed in years. Why they keep this list around with poor designs and some ridiculous functions is really beyond me.

Wordpress, however, has a very logical list and seems to be tuned more to social media. I really like the clean list layout and its simplicity in this example:
Wordpress Widgets
Overall, the widgets seem more useful than the Blogger gadgets if you're sticking to the standard lists on both tools. However, Blogger gets a HUGE plus for having an HTML/Javascript gadget that Wordpress doesn't have. This gives Blogger the ability to add functional code for any types of Javascript plug-ins or creative html where needed in the layout. It may not seem a big deal, but when a new social site appears with Javascript plug-ins, you can add these immediately to Blogger but not Wordpress. In my static home page example you can see a Javascript image slider added via this gadget.

Which one wins on this feature? I've got to give Blogger the edge only for the HTML/Javascript gadget. However, I find the Wordpress widgets to be much easier to use, more logical, clean and focused on the most popular and current social online trends.

Thus ends Part 1 of this comparison. I'll be digging deeper in Part 2 to talk about posts, images, advertising and site features. If you have time just sign up for both tools and give them both a tryout.


Posted By my pwiki1:43 PM

Saturday, January 11, 2014

Best Blogger Templates - 2014

So, this might be one of the most difficult posts that I have written on BloggerTipsPro.com. I have to start off by first apologizing to the creative authors out there that have produced some amazingly beautiful Blogger templates for the world to use. That said, I have some unfortunate comments to make to my readers that may or may not persuade you to use what Google provides out of the box or just to go get one of these templates.

Here it goes - I have spent many, many hours and days trying to find any template out there that qualifies as a 'best Blogger template' and found nothing - absolutely nothing. I've gone through hundreds of websites all pitching either free or paid Blogger templates and not a single one has made the grade of what a Blogger template should be. People have pitched their templates directly to me to add to this site but still did not qualify in my mind.

Blogger Templates are not Wordpress Templates

The problem - web designers totally understand page layout and design - however, they do not understand Blogger templates. Part of that must be blamed on Google for not adequately explaining the technical aspects of the template.

You see, Blogger templates are not Wordpress templates or vice versa. Yes, CSS design is the same but the deeper technicalities are not. What I have found in almost all cases (there are some exceptions I will explain) is that the web designers have taken Wordpress template CSS code directly or modified and just replaced it in Blogger.

Most of the websites pitching 'Best Blogger Templates' out there are all using the very same core of templates from a Creative Commons set that have be placed in the marketplace for free - many come from these sites (Templateify, Soratemplates, Templatism, Premiumbloggertemplates, Bloggertipsandtricks, Mybloggerlab, etc. dot-com. I won't honor these sites with links since I personally don't think they are in the spirit of what a blogger template should be - you are free to add the .com to each and take a look). These are great designs - don't get me wrong.

The Blogger Template Designer

What they all missed was the very essence of a Blogger template - the core template designer from Google. Since you the readers are aware of the Blogger template designer in out of the box templates you know that you can modify many of the parameters of each template - from colors, fonts, widths, outlines, etc. If you're not familiar with what I'm saying - here is an image of the designer with the sections I just mentioned outlined:

blogger template designer

However, in the case of the templates offered in the marketplace, they've missed this point completely by stripping out the template designer code from Google and just pasting in other CSS code. The template designer is configured to allow you to modify CSS without knowing CSS - a key point!

Now, is that a bad thing overall? No, it isn't earth-shattering. However, by removing the template designer you're stuck with what you get with their templates and cannot modify them without having deeper CSS knowledge to edit the CSS code directly. Many bloggers do not understand CSS code - and the beauty of the template designer is that a template author could provide user enabled modifications down to the deepest CSS levels - it is fully extensible.

Consequences

What that means for you the reader is that if you install one of these free templates you are stuck with the look-and-feel unless you know CSS (Want to learn? Go to Code Academy - Web Fundamentals). Your only other option is to install another template from scratch. If you don't mind doing that then by all means do so - there are some very nice designs out there. Just be aware of the consequences when you do that.

I did find a few template offerings out that that did use the template designer - but, unfortunately, they just modified the Google templates directly which I think is a copyright violation since there are no Creative Commons licensing statements in the Google free templates. You are much better off just using a Google template and extending it directly as I showed in the tutorial - Build a Basic Wordpress Theme in Blogger.

Or, if you're really ambitious, learn how a Blogger template works, strip out all of the CSS and build your own resell-able templates with the template designer.

I would love to hear some feedback from both users and authors on this post. What have you found? Are you an author that I missed? Are you wondering if some templates you have found qualify?

Posted By my pwiki12:06 PM

Tuesday, December 10, 2013

Adding Related Posts to Blogger Blogs

Adding related links within Blogger
NOTE: There has been a change in Blogger and LinkWithin. A number of users have found that LinkWithin is not working for them. Be aware you might find some issues. If you find you are having the issue, select Other for your Platform and manually add the script to a HTML Widget. You've probably seen a number of blogs that have related internal blog posts tagged at the end with inter-linking across the site. It's a very nice feature that has been made even easier by a online utility called LinkWithin.com.

The steps to adding this feature are so simple that it only takes a few minutes to get a great looking extra look-and-feel without much effort. Start by navigating to LinkWithin.com. Right away you'll see the starting point by entering your information into the widget form on the main page like this:

How to add related posts within Blogger

As you can see all I did was enter my email, link address, Blogger as the platform and 4 stories. From there click the 'Get Widget' button to continue. You'll see a dialog that looks like this:

Installing Blogger widgets

Click the Install Widget link that will open Blogger into a new window. You'll see the Blogger dialog pop up that prompts you for a blog name and widget title. Be sure to select the right blog if you have a number of them. You can also add the widget title (but I chose to leave it blank):

Adding the LinkWithin widget to Blogger
Just click 'Add Widget' to add the related posts to your blog posts. What happens next is that LinkWithin will add an HTML widget to your Layout that will automatically add the related posts to all of your blog posts. You'll see it in your main blog Layout menu page like this:

Widgets added to layout

The widget will be an HTML/Javascript most likely added to the right side of your layout. I've only tried this on the standard static Blogger templates and don't know if this works with the Dynamic templates. However, I think it should work.

There's nothing else to add!! You're blog posts will now have related posts at the bottom of each one. You can see the example right after this post. Enjoy!!

Posted By my pwiki7:53 PM

Wednesday, July 17, 2013

How to Create a Favicon for Blogger

Google search icon for favicon
Copyright 2012, Google, Inc.
Have you ever asked 'what is that little icon in the address bar?' or 'what is the little image next to the url called?' I would hazard to guess that asking someone who has worked online probably never bothered to learn what the word 'favicon' means (though, guessing that it meant 'favorite icon' wouldn't be too tough to figure out). First released in 1999 in Internet Explorer 5, the World Wide Web Consortium adopted it soon after.

Creating favicons for Blogger is pretty easy these days and can be done in literally minutes. The hard part is trying to map your logo or symbol into such small dimensions. And, to add to that, the expansion of icons of larger sizes has exploded over the last few years with mobility and the evolution of browsers.

Overall, however, it is a simple task at hand with only the need of a paint program (with a supplement - possibly) and a great online tool called Iconifier. These will allow you to create favicons and icons for almost all browsers and devices. If you're really interested in the history and aspects of the favicon you can jump over to Jonathan T. Neal's very comprehensive article called Understand the Favicon.

Here we'll just be concerned for favicons for Blogger. I'll walk you through some of the key considerations when designing your own with an emphasis on using simplicity as your guide (more creative folks who have deeper digital artistic skills can go much deeper).

Step 1: Draw Your Favicon Template

The example I'm going to use here is to attempt to simulate (only as a sample, Google team - don't sue me!) the Google search favicon. It's a very simple design of a blue, rounded rectangle with a Times lower case 'g' in the middle as you can see at the beginning of my post.

Our goal will be to create a similar graphic that mimics this icon that we'll then convert into a favicon. Your first step is to open a paint program and set your canvas to 144 by 144 pixels with a clear or white background. As a Windows user you can simply use Paint to set the Image/Attributes (or if using Windows 7 and above set the Home/Resize) to pixel settings of 144x144.

Why 144x144? If you read Jonathan's article you'll see that IE 10 will need this size in the future.

Next let's just draw a reddish, rounded rectangle without a border like this (be sure to save your file in PNG format for now):

Favicon background rounded rectangle for Blogger
Pretty simple at this point - your background is ready. Next, let's draw a large Times New Roman lower case letter in this background using nearly white (set your color to as close to white as possible but not fully white - RGB value of #FEFEFE or 254, 254, 254).  I'll use the letter 'y' as my example.

I set the text size to about 110 pixels and then drew the y on the background like so:

The first draft of an icon image for Blogger

Perfect! Our first icon logo is just about ready for IE 10 Metro!

Step 2: Setting the Border Transparency for the Favicon Template

The next step is to make a small adjustment on your icon. Now, if you have a paint program that can set the white border (which you can't see here) around the red template to a transparency, then go ahead and jump to Step 3. For all others we'll use the online tool called LunaPic I found in my earlier articles to set the transparency.

By having no transparency I mean that the white border still shows if you paste it onto another color like so:

Blogger icon without transparency set
You can still see the white border - if that had been set to be transparent you would not have seen that border when pasted and the black would have shown through as if the border was transparent. So, your next step is to upload your image into LunaPic. Simply choose the 'Upload' menu item and find the 'Browse' button down in the lower left of the screen from your LunaPic home page to get your image ready for Editing:

Upload your template image

Now, just press the 'Upload Now!' button to load your image onto the screen. To set the favicon transparency just choose the 'Edit' menu item - 'Transparent' command like this:

LunaPic transparency menu setting

Carefully use your mouse to click on any part of the white border to set it to be Transparent. You should see a faint checkered border now in LunaPic as I've shown with the red arrow here:

Setting the transparency color

If you don't see it then try it again until you're sure the transparency is set. The letter 'y' in the middle should not show the checkered pattern since we set its color to be slightly off-white.

You're now ready to save your modified image back to your system by selecting 'File' / 'Save Image' in LunaPic like this:
LunaPic save image

Be sure to select the 'Save as PNG' option when you're doing this. The image will have a new name now on your PC that you can now utilize as the core image for your favicon:


You're now ready to convert your base image into all icon formats for Blogger and other applications.

Step 3: Converting Your Blogger Favicon Template

The next step for a Blogger favicon is to convert this image to the standard 16x16 pixel image you see on almost all modern browsers in the URL bar. There are quite a few free icon generators out there today but I prefer using Iconifier because it generates all possible sizes from browsers to tablet icons.

Simply go to Iconifier.net to bring up the main screen. All you need to do is select your image from Step 2 from your system and press the 'Iconify' button like this:

Using iconifier for files

After a few seconds all of the necessary file sizes will be created for you as you can see here:

Creating the favicon

The file you're most interested in for Blogger is the one I've circled entitled 'favicon.ico' - this will be the one you'll use for blogger. You can either right-click and download (Save Image As...) the zip file with all icons or just right-click the one I've circled and save it to your system.

Step 4: Installing the Favicon into Blogger

At last the final step is to add your downloaded file, 'favicon.ico', to Blogger. This is a very simple step using the Blogger main menu. Just go to your Blogger Layout menu item and find the Favicon gadget in the layout like this:

Blogger layout menu

Select the 'Edit' link to bring up the icon selection screen. Use the 'Choose File' button to find the downloaded 'favicon.ico' file you just created in Step 3 and then press 'Save' like this:

Blogger template layout favicon dialog

Just save your Layout by pressing the 'Save arrangement' button on the Layout screen (this might be an unnecessary step but I do it anyway) and you are done!! The favicon is now added to your Blogger blog.

Don't worry - you can modify this any time.  Here's my test blog with our example that I created:

Final favicon added to Blogger


This will add a professional flare to your blog!

Posted By my pwiki12:32 PM

Sunday, May 19, 2013

How to Make Category Tabs in Blogger

blogger tab menuNOTE (March 2014): Blogger has moved the function to set the category URL from the Pages section below to the Pages Gadget. You don't add category links in the Page but add them in the Gadget - this will be updated soon. It was a great addition to Blogger when they added the tab menus as a feature. However, many times I've heard people asking how they can alter their menu tabs to be Blogger categories instead of Pages. Good news is that this is a very simple thing to do and only requires a few steps.

What you may not have realized is that in the Blogger Pages menu item is the ability to link to a URL instead of a Blogger Page and that Blogger categories (or labels) are just that - blogger URLs.

Getting the Category URLs

First thing you want to do is to make sure each of your posts have labels defined. If you want your posts to be seen in only one category then you can only give each post a single label. Next stepis to find the URL of one of your Blogger categories by clicking on the category directly like this:

blogger category labels
In my Wordpress test template blog you can see I have 2 labels or categories defined. Once you click on it go up to your browser's URL to see what the category link is. Interesting result -- they're just searches:

search url for blogger categories

You can sese that the label URL is just (yourblog)/search/label/(labelname). Make a copy of your label URL and save it off to the side for a moment.

Setting the Tabs to Point to a URL

Now, go to the Blogger main menu and select the 'Pages' item and 'New Page':

editing pages in blogger
What you'll see at this point is a drop down selection of if you want a new Blank page or to enter a Web address.  Select the 'Web address' like so:

What you'll want to do now is to enter your Lable/Category in the first text box and the URL you just saved in the 'Web address (URL)' box like this:

setting the web address to a search page

Press 'Save' to add this category page to your list of Pages. If you read some of my earlier tutorials you saw that in order for tab menus to appear on you blog, you first have to set the 'Show pages as' to 'Top tabs':


in order for them to show up on your blog. Be sure the 'Pages' widget is added as well in the Layout manu of your blog in the right spot - this is where the Tabs will show (ignore the 'Edit' button here - just make sure the Pages widget is there):


Once you save your template you should see your new tab at the top of your blog:

Blogger tab menu
If you click on this what happens is you're directed to the URL you entered in the Pages section. One thing you may notice right away, however, is this not so nice search result image at the top of your blog:


Removing the Search Label

If you don't like that appearing you can remove it by editing your template directly. Just go into the template editor and choose 'Edit HTML':

If you hadn't noticed there was a change in the html editor for Blogger. Key things to note are the expand triangle on the side, the new 'Jump to widget' dropdown, and the selections within:

new Blogger template editor

The search result image that we want to remove is located just above the Blog section of your template. In my case it is called 'Blog1' which is the default. However, yours may have a different name if you named your Blog widget different.  Just select that from the drop down and expand the triangles next to the lines that have widget: id='Blog1' and widget: id='main' like this:


What you're looking for is the ling that says b:include data='top' name='status-message'. That is the status image we want to disable. Just add the html comment characters (<!-- and -->) to both end like I've circled above to disable that message.  Save your template.

That's it! You now have a menu tuned to your categories rather than pages. This will be especially useful if you have a news site. You can look at my tab example called 'Backgrounds' on my Wordpress test template blog here:



Good luck!




Posted By my pwiki5:57 PM