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

Friday, May 23, 2014

Fix Embed Code Error in Blogger Template

Well, an error message appears when adding HTML/Javascript code to Blogger Template is a quite often Blogger error. That's not mean there is a problem with your script or your template, it's just because Blogger Template Editor (actually it's a XML editor) is not completely compatible with special character in script. It can happen when you add Google Adsense code, html tag or any kind of javascript code.

Why Do Errors Happen?


The HTML Editor of Blogger template is actually an XML editor and every HTML code in it must satisfies XML structure. With HTML, some error can be ignored and let's browser fix itself (browsers like Firefox, Chrome will automatically can fix HTML error and display exactly what's the coder wanted). But not with XML.

Every XML tag need a corresponding close tag and some special characters like &, <, " will make XML tag does not close properly. And that's why the parsing errors happen. Some kinds of parsing errors:

Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.

This is an old error message and you might not see it in Blogger nowaday, I guess. This error appears when you try adding Google Adsense code to your template. That's because Blogger XML did not accept the <script></script> tag.

“Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly. XML error message: The processing instruction target matching “[xX][mM][lL]” is not allowed.”

This is also an old error message. It happened when you try to embed code from Adveritising Network like Bidvertiser, Chitika or Adbrite etc.

Error parsing XML, line 8, column 82: The reference to entity "xxx" must end with the ';' delimiter 

Finally, the typical blogger error message that you do encounter very often. With xxx is the error entity with special character right before it.
For example, this error happens when I add Google Font code to my template. The error at this picture below because of the & character before subset entity.
Blogger Parsing XML Error
Blogger Parsing XML Error
And this error when I added Facebook Javascript SDK, because of & character before appID.

Blogger XML Parsing Error
Blogger XML Parsing Error

How to fix this kind of error?


The error happens because of special character, therefore we need to change this character into xHTML entity.
The easiest way to fix it is use HTML Encoder/Converter from Howeblog to automatically convert special characters to xHTML entities.
How to use HTML Encoder/Converter
  1. Go to HTML Encoder/Convert Tools
  2. Paste your code in the first text box
  3. Select all the check box.
  4. Click Convert
  5. Get your code at second text box, copy and paste it in Blogger template editor.
How to use HTML Converter/Encoder

Does It Affect Your Original Code?

Not at all! This tool just converts special character into a valid xHTML entity, beside that, every line of code is kept. After add converted code to your template, , you can test by viewing your blog, then press Ctrl + U (View Source), find your code position and you will notice the converted code just like the original code.

Blogger Link List Widget Save Error

Link List Widget in Blogger is a popular widget which is used to make primary menu in many templates, include my template. If you have recently edited this widget, I'm pretty sure you would get an error message "Please correct the errors on this form", and this message still show although you try again and again. Not only you, but me and many other bloggers are having the same experience.
Link List Widget Error
Link List Widget Error

Thursday, April 18, 2013

How To Remove Error and Locked Blogger Widgets

Unremovable widget is a very common problem of Blogger users. You may encounter this problem when you change your template and some widgets of this new template is unremovable. Some unremovable do not affect your template at all, it will not appear in your blog page, but they are still annoying  when you manage your widgets.
Locked Widget and Normal Widget
Locked Widget and Normal Widget
There is two kinds of unremovable widgets. The first is "error widget", which is not show any option when you edit it. The second is "locked widget", which can not move to anywhere and do not have Remove button when you edit it (such as Navigation and Attribution widget). This post will show you how to remove these kinds of widgets in very easy step.

STEP 1: 

You need to know what is widgetID of this unremovable widget. Go to Layout, click Edit corresponding to this widget. At popup window, look for widgetID at the end of URL bar, select and copy it.
Select and copy widgetID
Select and copy widgetID

Friday, April 12, 2013

How To Expand Widget Templates in New HTML Editor?

After new Blogger Template HTML Editor was out, I received a lot of questions about the old "Expand Widget Templates". In this post, we will make it clear about Expand Widget Templates in new HTML Editor.

What Is Expand Widget Template


For who don't know, Expand Widget Template is a option of old HTML Editor. By default, the old editor only show core template code and hide others code like widget. It makes you easier to edit or customize Blogger Template. All widget code will only show if you check Expand Widget Templates option.
Expand Widget Templates Option
Expand Widget Templates Option

Where Is Expand Widget Templates


Well, in current HTML Editor, there will be no option Expand Widget Templates anymore. Why? Because all codes have been shown in new editor, that's mean you don't need to expand it anymore.
By default, all widget code have been folded. A concealed widget code section is identified by a fold marker, it's is an arrow symbol , next to the line number. You click into it, and the concealed widget code section is revealed.
Click Right Arrow Icon To Expand Widget Code
Click Right Arrow Icon To Expand Widget Code

How To Expand Widget In New HTML Editor


At the time, almost Blogger tips or tutorials are still within the old editor, so how to follow their instruction about "Expand Widget Templates"?

Search For Specific Section

If the tutorial requires you to find for a section of code, use Find function (Ctrl F) and find for it. If this section of code is in folded widget section, the concealed widget code will automatically expand.

Go To A Widget Code

If the tutorial requires you to find a widget code, use Jump to widget feature to quickly locate it. After that, click to expand this widget code before editing.
Jump to widget feature
Jump to widget feature

Wednesday, April 10, 2013

New Blogger Template HTML Editor With Many Improvements!

As you know, editing and customizing Blogger Template with HTML editor is like a nightmare with anyone who is not familiar with coding. Just because the old HTML editor is just like a Notepad program without anything to help the users. No syntax highlighter, no line counter, no everything, just a white page with thousand lines of code.

New Blogger Template HTML Editor is OUT!


But it's not like that anymore! The new Blogger Template HTML Editor has come out with many many improvements as a press release from Blogger Buzz. This is the best Blogger update I've ever heard and I have waited for this for several years! Okay, enough with introduction, let's find out.

What's New In New Blogger Template HTML Editor?

What's New In New Blogger Template HTML Editor
What's New In New Blogger Template HTML Editor

1. Syntax Highlighter

The first thing I can notice from the new editor is syntax highlighter. What is that? Syntax Highligting is a feature of code editor that display code in different colors (and fonts) according to the category of terms. It will help you easier to spot a part of code. It's also support auto-indentation to match code's structure.

2. Line Counter

Like before, everytime you make a error in code, it was very hard to find where is the error line. With source code line counter, it's will much easier.

3. No More Widget Expand, Replace With Code Folding

There is no Expand Widget Template anymore, it is Code Folding instead. When editing template, you will see some character at the counter column, click on it and all code of this section will be expanded. After expanding code, the will disappear, but if you click at where the symbol disappear you can fold the code again.

There will be each for every widget code, you need to click every to expand all widgets code.
For more information, read How To Expand Widget Templates in new HTML Editor.

4. Jump To Widget

With this function, you can easily locate any widget html code in template without using search. 

5. Find, Find and Replace, Replace All

Now, everytime you press Ctrl + F, there is a build-in find function of HTML Editor. If you still wanna use Browser Find function, press Ctrl F again or press F3. But I recommend using the build-in one, because it will hight light all matched word, not only one. And to Find Next, press Ctrl G.
For Replace function, press Ctrl Shift F, input what's need to replace then Enter, input what's you wanna replace with and Enter again.
Replace All helps you replace all word at once, press Ctrl Shift R and use like Replace.

6. Error Highlighter

Not just error notification like old editor, the new editor also highlights the line of code with error. If there is more than one error, the first error will be notified and highlighted.

7. Preview Template

Preview your website without Saving the template

8. Format Template

Format Template button will automatically cleans up the indentation of the template. That's will make your code friendlier.
Before Using Format Template
Before Using Format Template
After Using Format Template
After Using Format Template

9. Revert Changes

No need to refresh all page anymore, just click Revert Changes.

10. Revert Widget Template

Revert Widget value to default. Reverting a widget to its default value will remove any customizations you have made inside the <b:widget> tag.

How Can You Use That?


This improvements have been applied to every Blogger, not ony Blogger in Drafts. With someone who new with Blogger or coding, maybe this change is a little bit confused. The only way is try to get used to it.

How About Howeblog

This is really a big change and affect to all older tips. Don't worry, every tips still work fine with this new editor but few step may a bit different since old editor has been replaced. And I think there is no way to roll back to the old editor.
I will try to edit old post to suitable with this new editor. After that, I will write some tips about using it, please stay tune. Peace!

Saturday, April 6, 2013

Add Dynamic Meta Tag To Blogger For Best SEO

Meta Tag in Blogger


Meta tags, especially description tag and keyword tag, are the most important tag for SEO in Blogger. Meta tags allow search engine spider crawl and index your website more accurately. In other words, meta tags tell the search engine what your website about and how they display your page in search result pages.
Beside description and keywords meta tag, you can use some other tags help for SEO like robots tag, author tags, open graph tag:
  • Description and Keywords: provide information of your page.
  • Author: tell everybody author of this post.
  • Robots: tell the search engine spider how to treat your page. You can't prevent the spider from crawling and indexing your page and many other thing.
  • Open Graph: mark by property attribute with og value like og:title, og:type, og:site_name etc. This tag is used by Facebook to display your blog exactly.
Meta Tag Robots, Author and Open Graph
Meta Tag Robots, Author and Open Graph

Using Meta Tag Description and Keywords in Blogger

There are 2 ways to adding meta tag description and keywords to Blogger, by Settings and by HTML Editor. Please read Blogger How 4 - SEO Techniques for Blogger for complete information about using meta tag.

About Dynamic Meta Tag

What is Dynamic Meta Tag

If you ever used Wordpress, you would notice that some wordpress SEO plugins always have a dynamic meta tag function. It will generate a different tag for each post, not just the same keywords or description like default Blogger Meta tag.
Where do the different tags come from? The plugins will get description and keywords from post title, labels (tags, categories) and some words from post content. Some Wordpress plugins support this function are SEO Ultimate, All-in-one SEO Pack, Wordpress SEO by Yoast.

Why Dynamic?

Well, with the default meta tag, every page of your blog will have the same tag. That's mean the search engine can not clearly know about your page content, and will treat all page the same way. That's called "duplicate meta tag"and definitely not good for SEO.

Dynamic Meta Tag Generator 1.2 for Blogger/Blogspot


Dynamic Meta Tag Generator by HoweBlog helps you generate dynamic tag for Blogger/Blogspot with your desire keywords. There are some advantages:
  • Getting keywords and description from your post title.
  • Use your owd keywords along with auto keywords.
  • Support dynamic meta tag for every page of Blogger.
  • Support open graph meta tag use for social media network such as Facebook.
  • Easy to use.

How To Use

  1. Go to Howeblog > Tools > Dynamic Meta Generator
  2. Fill in all fields to make the tool work properly. Author and Robots is optional. You can use the same description and keywords at Homepage and Post page.
    Using Dynamic Meta Tag Generator
    Using Dynamic Meta Tag Generator
  3. Click Generate Meta Tag to get the code, then select all and copy this.
  4. Backup your template, then go to your blog Dashboard > Template > Edit HTML.
  5. Find 
    <b:include data='blog' name='all-head-content'/>
  6. Paste the code copied in step 3. If there is already have old meta tag, then replace them with the new one. You should replace old meta description, meta keywords, meta og, meta robots and meta author. If you still keep old meta tag, the lower position tag will be used.
    Replace old meta tag with the new one
    Replace old meta tag with the new one
  7. Save your template and you're done.
After these step, please go to your blog and check meta tag at some pages to make sure everything work fine. For error report, please comment at this post, I will reply in 24h.

Friday, April 5, 2013

Customize Default Blogger Title for Better SEO

Blogger is a very SEO-friendly platform, everything from url, script are optimized for search engine, except the title.

The default Blogger title


The default blogger title is so not friendly with users as well as search engine. Why? Because default blogger title likes to display main title first, and post title after. Since the SERP (search engine result page) only display a certain amount of words of title, displaying main title first may cut off some important keywords from your post title. And with readers, they can not completely understand your post if the title do not display entirely.

Customize Default Blogger Title
Customize Default Blogger Title
For a real-life example, my main title is Howeblog - Tutorials and Tips, and this is how Blogger displays my title:
Homepage: Howeblog - Tutorials and Tips
Post Page: Howeblog - Tutorials and Tips: My Post Title
Static Page: Howeblog - Tutorials and Tips: My Page Title
Search Page and Archive Page: by default, search engine spiders do not index these kinds of page, so we can skip it.
So, if you wanna improve your blog ranking, you must change default title into a better form, and then customize it for your taste.

Blogger Title Tag


There is 3 kind of blogger title tags you need to know.
  1. Data:blog.title: the title of the blog. E.g.: HoweBlog - Tutorials and Tips.
  2. Data:blog.pageTitle: the title of current page, this is default tag using in blogger. At homepage, it's the blog title; at post pages, static pages, it contains post title and page title below blog title. You can see from the example above.
  3. Data:blog.pageName: the title of each page, best title tag so far. It's the post title, page title, label name (if at label page). Note: at homepage, it shows nothing.

Customize Blogger Title


At first, remember back up your template, then you need to find where the default title tag located. Go to your blog Dashboard > Template > Edit HTML (don't tick Expand Widget Templates), then find this tag:
<title><data:blog.pageTitle/></title>
Some custom templates have changed the default title already, so obviously you can't find this tag and don't need to change it again. But if you still want to see how it looks, try search for:
<title><data:
Okay, to change your blog title, you need to replace entire of these tags (<title></title> with default Blogger template or <b:if></b:if> with custom template), you can choose one of the following title types below:

1. Only Post Title

Replace title tag with:
<b:if cond='data:blog.pageType == &quot;index&quot;'>
<title><data:blog.pageTitle/></title>
<b:else/>
<title><data:blog.pageName/></title>
</b:if>
With these tags, Blogger will show blog title at homepage, and only post title at post page, also apply for static page, archive page and label page.

2. Post Title and Page Title (Recommended):

Replace title tag with:
<b:if cond='data:blog.pageType == &quot;index&quot;'>
<title><data:blog.pageTitle/></title>
<b:else/>
<title><data:blog.pageName/> | <data:blog.title/></title>
</b:if>
At post page it will show title first and then blog title, also apply for static page, archive page and label page. E.g. "Customize Blogger Title | Howeblog - Tutorials and Tips".
Tips: you can replace | character with another one like ~, -, /, \.
This structure of title is widely used by Google, Yahoo, Youtube and others websites.

3. Customize Title with Custom Keyword

Not just post title, you can customize it with adding some keywords in title. It will show in SERP as a part of post title automatically every post. You can add your keyword before or after data:blog tag, but inside title tag. For example:

With Type 1:

<b:if cond='data:blog.pageType == &quot;index&quot;'>
<title><data:blog.pageTitle/> - Homepage keywords</title>
<b:else/>
<title>Case Study: <data:blog.pageName/> - Post keywords</title>
</b:if>
Blogger Title Customized
Blogger Title Customized

With type 2:

<b:if cond='data:blog.pageType == &quot;index&quot;'>
<title><data:blog.pageTitle/></title>
<b:else/>
<title>Best Tips: <data:blog.pageName/> from <data:blog.title/></title>
</b:if>

Wednesday, March 20, 2013

Stylish Breadcrumbs For Blogger With Multi Label Support

Breadcrumbs is a navigation element used in user interfaces, in this case is for website. It helps users to know their current location in a website. Breadcrumbs for website often appears below title bars or menu navigations bars with links back to each category the current post is in.
Breadcrumbs for Blogger with vBB style
Breadcrumbs for Blogger with vBB style
Blogger post is located in Labels, not Categories and Blogger does not support multi level categories yet, breadcrumb is sure not available too. At this tutorial I will guide you how to add breadcrumbs for blogger with these advantages:

Pros:
  • Support Google Rich Snippet (you can test at Webmaster Rich Snippet Tool)
  • Support multi label breadcrumb
  • Breadcrumbs for label page
  • Style and compatible (even support IE)
  • Highly optimized and customize.

Breadcrumbs for Blogger is supported and display in Google SERP
Breadcrumbs for Blogger is supported and display in Google SERP

Sunday, February 10, 2013

Blogger How 6 - Spread Your Blog With Social Network

Blogger How is Blogger Tutorial Series from How We Blog. In this series, I will guide you step by step building your first blog with Blogger, spread it to the world, and then you can earn money from it.
Part 6 of this series:

Blogger How 6 - Spread Your Blog Around The World With Social Network


After building a completely blog with great contents, you still need a few steps more to success. The question is how can you get as much visitors as possible. The answer content and SEO is not enough. An important part of Blogging Marketing Strategy is Social Media Network Marketing.
Social Network
Social Network

Thursday, January 10, 2013

Blogger How 5 - Add Widgets and Hacks To Template

Blogger How is Blogger Tutorial Series from How We Blog. In this series, I will guide you step by step building your first blog with Blogger, spread it to the world, and then you can earn money from it.

Part 5 of this series:

Blogger How 5 - Add Widgets and Hacks To Template


What is a Widgets?


At first, we need to know what widget is. Widgets, default name in Blogger is Gadget, enable bloggers to add more features, functions and anything they want to their blog in an easy way. A blog widget is created to be used with blogging platform like Wordpress, Typepad, Tumblr. Blogger currently supports many widgets which Google calls Gadgets.
A Blogger Widget
A Blogger Widget

Saturday, December 1, 2012

Blogger How 4 - SEO Techniques For Your Blogger

Blogger How is Blogger Tutorial Series from How We Blog. In this series, I will guide you step by step building your first blog with Blogger, spread it to the world, and then you can earn money from it.

Part 4 of this series:

Blogger How 4 - SEO Techniques For Your Blogger


This post contains the most important and basic SEO Techniques that you need to apply to your blog. It mainly talk about how to optimize your blog and your posts, what needed to set any blog viral on all major search engines. That's about how to setting mega tag, about content optimization,... and yes, about everything you can do with your blog. The goal is to get as much as visitors from search engine possible.
Please be patient until BH6 is published, more SEO tactics with social network will be revealed.

1. Setting for a SEO-friendly Blog

1.1 Basic Settings:

At Blogger Dashboard, click on your blog name, then click Settings at left sidebar. And then you can edit your Title and Description. Make sure it's relevant and included your core keyword. Check "Yes" at both questions Add your blog to our listing? and Let search engines find your blog? Don't forget to click Save changes.
Basic Setting for SEO
Basic Setting for SEO

Tuesday, November 27, 2012

Blogger How 3 - Change, Backup and Customize Template

Blogger How is Blogger Tutorial Series from How We Blog. In this series, I will guide you step by step building your first blog with Blogger, spread it to the world, and then you can earn money from it.
Part 3 of this series:

Blogger How 3 - Change, Backup and Customize Template


If you want your blogger have a better look, this is an essential article for you. You will learn how to back up a template before change it, customize it in your way and much more. Of course everything will be very basic to understand and follow.

Find Free Blogger Templates:


Some places that you can find and download good blogger templates for free:
Templates are downloaded under .xml or .zip format. With archive format, you need to extract it and get .xml file (some templates are included images, instruction and script that you can hosted your self).

Which Template is Good for Me?

You can choose whatever template which one you like most and suit your business, just remember simple is the best. But if you're asking me what kind of template is the best then I will answer this is 2 columns template with content on the left and right sidebar.
Why? Because they are simple, users and SEO-friendly, easy for Search Engine Spider to crawl your main content first and sidebar content later. You can see, most of popular bloggers choose that kind of templates for their blog

    2 Ways to Change Blogger Template

    Change and Backup / Restore Blogger Template
    Change and Backup / Restore Blogger Template

    Saturday, November 24, 2012

    Blogger How 2 - Structure of a Blogger Template

    Blogger How is Blogger Tutorial Series from How We Blog. In this series, I will guide you step by step building your first blog with Blogger, spread it to the world, and then you can earn money from it.

     Part 2 of this series:

    Blogger How 2 - Structure of a Blogger Template


    In this article, you will learn how to recognize each section of a blogger template. You will need that when edit html and arrange your widget.

    Blogger Template and Its Components

    Home page structure:

    Look at picture below, this is basic layout for a 2 columns blogger template, every section is marked by a number.
    A Blogger template layout

    Friday, November 23, 2012

    Blogger How 1 - Register and Start Your First Blogger

    Blogger How is Blogger Tutorial Series from How We Blog. In this series, I will guide you step by step building your first blog with Blogger, spread it to the world, and then you can earn money from it.

    The first post of this series:

    Blogger How 1 - Register and Start Your First Blogger


    Blogger (a.k.a Blogspot) is a professional blogging platform by Google. Blogger offers many professional features to its users. With Blogger, you can fully customize template and your post. Blogger is one of the best search engine optimized platform that support by Google itself. Blogger is free, fast and stable for everyone. And that's why I write tutorial about Blogger first (and Wordpress after that).

    Register Google Account and Sign In 


    You need a Google Account to sign in and use Blogger at http://www.blogger.com. If you don't have one, click Sign Up button at right up corner, then choose your Gmail user name (it will be your Google Account too), fill in all the field then click Next step to finish the registering.
    Register a Google Account
    Register a Google Account