Skip to main content

Editing A Layouts Template

A Layouts template, the template in a New Blogger blog, when published to Blog*Spot (or to a Google Custom Domain) is written in XML, not HTML. A lot of HTML based tweaks won't work in New Blogger.

If you force HTML into your template, you may end up with one of the new, cryptic error codes
bX-lgwej
This says that your post template contains invalid HTML.

Are you seeing this error? If so, don't despair.

XML is not as user friendly as HTML was. But 90% of the HTML based tweaks can probably be copied into HTML page elements in the GUI Page Elements section of the Template. Forget about raw XML, and use Page Elements.

XML is not as forgiving as HTML. You may have to learn some discipline, when coding New Blogger template entries, and even posts.

Most HTML tags, like the Anchor tag, come in pairs.

<a href="http://bloggerstatusforrealbeta.blogspot.com/
2007/01/editing-template-in-new-blogger-blog.html">
http://bloggerstatusforrealbeta.blogspot.com/
2007/01/editing-template-in-new-blogger-blog.html</a>
is an anchor link to this article. Notice the
<a...> ... </a>
pair.

Some HTML tags, like the Break tag, don't come in pairs.
<br>
is a tag that I use a lot. There is no sequence
<br> ... </br>
A Break tag, in strict HTML, is better written as
<br />


The requirements of strict HTML you will probably have to learn from experience. An Object tag can't be written as the Break tag is written.
<object />
isn't valid. Nor is a simple
<object ... >


Here's how I got an embedded video object to work, in my Miscellaneous Musings post More Bumper Cars
<span style="text-align: center; display: block;"><object height="350" width="425"><param name="movie" value="http://www.youtube.com/v/z9tKWzxSZ5E"><embed src="http://www.youtube.com/v/z9tKWzxSZ5E" type="application/x-shockwave-flash" allowscriptaccess="samedomain" height="350" width="425"></embed></object></span>
Note the Embed and Param tags, too. The Param didn't require pairing. The Object and Embed tags did - you'll get errors when publishing with them unpaired. I got an error when I tried publishing Object as
<object ... />
The only solution was to publish it as
<object ... > ... </object>
Apparently all tags aren't as versatile in formatting as the meta tag is. Life isn't fair, nor is strict HTML easy. Deal with it.

>> Top

Comments

Popular posts from this blog

Adding A Link To Your Blog Post

Occasionally, you see a very odd, cryptic complaint I just added a link in my blog, but the link vanished! No, it wasn't your imagination.

Embedded Comments And Main Page View

The option to display comments, embedded below the post, was made a blog option relatively recently. This was a long requested feature - and many bloggers added it to their blogs, as soon as the option was presented to us. Some blog owners like this feature so much, that they request it to be visible when the blog is opened, in main page view. I would like all comments, and the comment form, to be shown underneath the relevant post, automatically, for everyone to read without clicking on the number of comments link. And this is not how embedded comments work.

What's The URL Of My Blog?

We see the plea for help, periodically I need the URL of my blog, so I can give it to my friends. Help! Who's buried in Grant's Tomb, after all? No Chuck, be polite. OK, OK. The title of this blog is "The Real Blogger Status", and the title of this post is "What's The URL Of My Blog?".