The Complete Guide to Building Blogger Templates in Freeway

Blogger Plus Freeway Pro 5.5

Although integrating Blogger into your Freeway-created website seems easy at first, there are lots of small nuances that go unmentioned in the official documentary. Here, I will attempt to provide a single, complete, go-to resource for using those Blogger actions.

This article is a work in progress, so if you have any questions please comment and I'll place the answer in the article. This tutorial assumes you are using Freeway Pro 5.5, and have a basic knowledge of the Freeway workflow. Now, let's get started!

What the Blogger Actions Do

As the subtitle above says, we're going to start by talking about what the Blogger Actions do, and what they don't do, as this tends to cause a lot of the confusion.
  • They DO create a template for Blogger.
  • They DON'T put a Blogger blog on your website (Softpress puts it well: The Blogger Templates suite of Freeway Actions makes it very simple to "brand" a page hosted on Blogger.com's servers so it looks like all the other pages in your site.)
    Note: You still have to upload the files from Freeway to your web server, as that is where all the images and other resources will be stored. The Blogger template will just point to them, much like a HTML email.
  • They DON'T style everything (meaning that if you want the blog really custom you'll have to add some custom CSS, see the bottom of this post.)
That second point is where most of the confusion comes from. People sometimes expect the Blogger actions to "embed" a blog on their website, when in reality all the actions do is generate a blogger template from the page you created in Freeway. If you are still confused please read this section again, as everything else really hinges on this simple fact.

Building the Template

Initial Configuration

Before we get down to the actual construction, we have to get everything all set up.
In Freeway
  1. Set the page to XHTML strict. To do this, click on the page title in the sidebar, and in the HTML generation settings pane (3rd from the left) change the output to "XHTML Strict".
  2. In the "File" menu, click on "Document Setup". In the upload tab, you should enter the web address and FTP details of where you are going to upload the files, NOT the something.blogspot.com address that Blogger gives you. This will depend on wether your blog is stand-alone, of if it is part of a larger website.
    • If it is standalone, then this address should directly reflect where you want the resources to be stored. For example, let's say that you want to have these files stored in a folder named "blog" that you created with a FTP application, then this address will look like example.com/blog/.
    • If the blog is part of a larger website, and therefor a Freeway document with other pages, then create a new folder in Freeway's page listing pane, title it "blog", and place the template page inside it. Set the URL to example.com.
In Blogger
  1. Create a new blog and chose one of the "Simple" templates.


Now that we understand what the actions do, it's time to build the template from within Freeway. This is trickier than just sketching in the elements for one simple reason: the page must grow and shrink with the blog content. Otherwise, the blog text will overflow its containers and really create a mess. There are two methods to creating a page that will grow from within Freeway.

The first is to use the RPL (Relative Page Layout) action that comes bundled with Freeway 5.5. The other is to build the page inline (aka box-model). Which you chose will depend on your own personal preference/inclination. Here's a breakdown of the pros/cons of each system, and how they work:

Inline: This method of construction is the most bullet-proof system available right now. What you're doing is inserting all of the page elements in a text-flow. The page will grow just like a document of text grows as you add more content.

  • Bulletproof
  • Higher level of control
  • Difficult to master
  • More time to create
How to: There is really no reason for me to teach this method here, as FeebleEagle (aka past Freeway wizard Dan Jasker) wrote this excellent tutorial on Freewaytalk. I've turned his tutorial into a skeleton blogger template, which you can style to taste. Download the inline version of Scribus here.

RPL: What the RPL action does is take a page created in the typical Freeway method (sketching in the elements and dragging them around) and attempt to intelligently make it inline. The problem with this is that the action won't always know how you wanted the page to grow, which can have some harmful side-effects. Most of these can be avoided by applying the "Remove from Relative Page Layout" action to the troublesome elements, but use this sparingly as it might break the page as it grows.

  • Easy to add to a pre-existing page
  • Build in the usual Freeway manner
  • Less control over how the page grows
How to: This is really simple. Build the page as you would a static page in Freeway, and sketch in the actions where you want them to display. Customize the actions styling in the Actions window. Apply the RPL (Relative Page Layout) action to the page. Preview the page and see if everything looks okay. If there is some erratic behavior, you have two options to try and fix it:
  1. Adjust the "Overlap" slider in the action interface. First, bring it up to 50 and preview. If that fixes the issue, bring it down by 10 and preview again. Keep doing this until the page breaks again. Then move the slider up 10 to the last working configuration. If 50 doesn't fix it, move it up by 10 and preview. If you get to 100 and the page is still working, it's time to go to the second method:
  2. Apply the "Remove from Relative Page Layout" action to the element that is causing the trouble. To figure out which element it is will require some trial and error. Apply the action to an item, preview. If that doesn't fix it, apply to a different item. Keep doing this until you fix the problem. Make sure that you aren't applying the Remove from RPL action to a container of the Blogger actions themselves though, as that will defeat the purpose of using the RPL action. If none of these work, then you're stuck building it with the Inline method outlined above.
Alternatively, you can download a RPL version of Scribus (a skeleton Freeway/Blogger template) from here, and style to taste.

Adding More Widgets

This is all fine and dandy, but what if you want to use some of the Blogger widgets that don't have their own action? It's actually quite simple, you just have to have the Blogger Profile and/or the Blogger Archive action(s) placed inline into a sidebar.
  1. Draw a HTML element (if you're using the RPL method) or insert it into the text flow for an inline model. Name it "sidebar".
  2. Double-click on just as if you wanted to type some text into it. An I-bar should appear.
  3. In the top bar, navigate to Insert>Action Item>Blogger Profile or Blogger Archive.
  4. Stretch the element to use the entire width of the "sidebar" HTML item.
  5. Select the "Sidebar" HTML item and deselect it's height. To do this, go into the inspector and click on the icon right next to the height field.
When you upload the website in Freeway, copy the code to Blogger, and switch to the "Layout" page in the blog's settings you should see your widgets off the the side, and right next to them a "Add a Gadget" link!

Using the Template

Now that you've got an uber-awesome template built in Freeway, you have to get that to your blog. The most important thing to understand is that you still have to upload the site files to a web server somewhere as all that Freeway hands to Blogger is the code, not the resources.

Publishing Workflow

  1. Upload from Freeway to your web server (Command-U)
  2. Open the Actions window (Topbar>Window>Actions).
  3. Select any of the Blogger actions on the page and click on the "Copy to Clipboard" button.
  4. Go to Blogger and choose your blog from the listing.
  5. Click on the "Template" tab in the sidebar.
  6. Press the "Edit HTMl" button just under the little preview of the blog. A warning will pop-up, dismiss it.
  7. Delete everything from the editing window, and hit Command-V to paste the code from Freeway in.
  8. Click the "Save" button. Another dialog will pop-up informing you that there are widgets on your blog that aren't included in the template. Choose to delete them.
  9. View your blog!
If you followed the directions above to add more widgets, you can do so now. Simply go to the "Layout" tab, and add to your liking!

Custom Domain

You've now got a really awesome looking blog, that really looks just like part of your website! However, once glance at the URL will show that it really isn't. What to do? Set up Blogger to work with your own domain! To do this, start by going to the blog's settings page. Under "Publishing" you will see an option to add a custom domain. Click on it, then click on the "Switch to Advanced Settings" link. Follow the directions!
Note: You'll have to use a subdomain like blog.something.com instead of something.com/blog.

Tips and Tricks

Web Fonts

If you are using Google Web Fonts on your blog, you'll have to add a / (forward-slash) just before the >. For example, <link href='http://fonts.googleapis.com/blah' rel='stylesheet' type='text/css'> becomes <link href='http://fonts.googleapis.com/blah' rel='stylesheet' type='text/css'/>

Custom CSS

Unfortunately, the Blogger actions are pretty lightweight and don't include a lot of styling as they should. This means that you will have to add some of your own CSS to really get it to "fit". To add your own styles, I recommend you use Firebug in Firefox.

Pick your element, style it until you're happy, then add it to Freeway's styles. Enter the class in the "Tag" field of the style editor, tab into the "Name" field, hit the delete key, then tab out of that. You want that "Name" field empty! Click on the extended button and add your styling.
With that said, here are a few selectors I found particularly helpful:
  • .post-title - This will style the post titles. I use it to tweak the bottom-margin.
  • .date.header - Much like the above, but this one is for the dates.
  • .comments - For some odd reason Blogger's default here is Times. Use this to override that and choose your own font.
  • [class^="widget"] - This selector will style all the Blogger widgets on the page. This is useful if you are adding widgets through Blogger and want to give them a margin or font.
  • .body - I use this tag to apply a font to all the unstyled text on the blog (of which there is a lot of!) for a more uniform appearance.
  • .date-outer - This is actually the wrapper of each blog post. Using this you can add space between each post, outline them, or give them a background and drop-shadow (like this blog!).

Wow! By now you should have a really awesome Blogger blog that really looks the part!
As I said at the beginning of the article this post will grow and evolve so if you have any questions or suggestions, please leave me a comment!

No comments:

Post a Comment

I'm Caleb Grove

Yep, that's me. I'm a 17 year old web unicorn and own OnRamp Web Design. My skill base is quite broad, though my real focus lies in UX and UI design for the web. When it comes to designs, I'm a perfectionist, scooting 1 pixel at a time.

My main blog captures all my web-related thoughts that exceed 140 characters. Anson S is my personal blog, where I pander in politics and religion. You can tweet me on Twitter at @SirCalebGrove, circle me on , or friend me on Facebook.

About this site

This is my playground. CalebGrove.com harnesses the power of HTML5 and CSS3. It was built using my web design weapon of choice, Freeway Pro, using a inline flexible system. Responsiveness was hand-coded. The blogs are hosted by Blogger, whose template code was generated by the Blogger actions. Website hosted by GJX Hosting. Creativity provided a disturbed mind, and not much else.

No unicorns where harmed in the making of this website, except through caffeine overdose.