Sunday, April 27, 2008

blogger adding page elements




I was trying to add a flickr badge and etsy links for my friend Katrina on her Silver Selkie Studio blog, which is hosted on blogger.

I was trying to do it the old-school hardcore way of editting the HTML template directly, but kept getting error messages like:


"The content of elements must consist of well-formed character data or markup."


and


"The reference to entity "zg_person_id" must end with the ';' delimiter."


It turns out that you don't want to edit the HTML directly anymore, instead you want to go to the Layout tab, then select "Page Elements", and then click on "Add a Page Element".

Select "HTML/JavaScript Add third-party functionality or other code to your blog."

And just paste in the code you get. It looks like they do a bunch of sanity checks on your data to make sure it's valid XML, unlike if you paste it directly into the "Edit HTML" link.