Skip to main content

Odd Occurrences In The Blogger Template - "-->"

Recently, a couple bloggers have reported a mysterious glyph, in their blog page.
Please, I've been trying to remove the --> at the top of my blog forever. I can't find in the templates where this is coming from. If anyone can help me please respond. Its driving me crazy.



The mysterious glyph.


So, we look at the blog. Click on the picture (above), and view it full size, if you need.

Next, view "Page Source" in the browser. This shows the published blog page code, which will not be the same as the raw template! You won't see the mysterious "-->", when you edit the template - it's embedded in the template macro library code, but it's there, I promise you.

table.sample td {
border-width: medium medium medium medium;
padding: 1px 1px 1px 1px;
border-style: outset outset outset outset;
border-color: red red red red;
background-color: rgb(255, 245, 238);
-moz-border-radius: 6px 6px 6px 6px;
white-space:nowrap;
}
</style>

--></style>
<link type='text/css' rel='stylesheet' href='http://www.blogger.com/static/v1/widgets/2300090209-widget_css_bundle.css' /> <link rel="stylesheet" type="text/css" href="http://www.blogger.com/static/v1/v-css/3727950723-blog_controls.css"/>
<link rel="stylesheet" type="text/css" href="http://www.blogger.com/dyn-css/authorization.css?targetBlogID=7088093820350220800&zx=05ee26f6-7ace-4a89-936c-60d828d65f38"/>
<style type="text/css">#navbar-iframe { display:block }
</style>
</head>

When you edit the raw template HTML (Layout - "Edit HTML"), you'll see something like this.

table.sample td {
border-width: medium medium medium medium;
padding: 1px 1px 1px 1px;
border-style: outset outset outset outset;
border-color: red red red red;
background-color: rgb(255, 245, 238);
-moz-border-radius: 6px 6px 6px 6px;
white-space:nowrap;
}
</style>

]]></b:skin>
</head>

Remove the "</style>, giving you this.

table.sample td {
border-width: medium medium medium medium;
padding: 1px 1px 1px 1px;
border-style: outset outset outset outset;
border-color: red red red red;
background-color: rgb(255, 245, 238);
-moz-border-radius: 6px 6px 6px 6px;
white-space:nowrap;
}

]]></b:skin>
</head>

In the display "View" - "Page Source", you'll now see this.

table.sample td {
border-width: medium medium medium medium;
padding: 1px 1px 1px 1px;
border-style: outset outset outset outset;
border-color: red red red red;
background-color: rgb(255, 245, 238);
-moz-border-radius: 6px 6px 6px 6px;
white-space:nowrap;
}

--></style>
<link type='text/css' rel='stylesheet' href='http://www.blogger.com/static/v1/widgets/2300090209-widget_css_bundle.css' /> <link rel="stylesheet" type="text/css" href="http://www.blogger.com/static/v1/v-css/3727950723-blog_controls.css"/>
<link rel="stylesheet" type="text/css" href="http://www.blogger.com/dyn-css/authorization.css?targetBlogID=7088093820350220800&zx=05ee26f6-7ace-4a89-936c-60d828d65f38"/>
<style type="text/css">#navbar-iframe { display:block }
</style>

</head>

All better now. But why is this happening?

Comments

Emily Lambert said…
A 7-year-old post had the answer I'd been looking for. Woo! Felt like a treasure hunt. The end was totally worth it.

I had to stop by and give a formal "thank you," so thanks for this.

If your wondering, I found your post when someone linked to it from here: https://productforums.google.com/forum/#!topic/blogger/bTrqkQ0jc0k
Thank you for trying to help. Much obliged. But I hate to say we are talking about different thins. Like an apple and an orange. You see, the page view source cannot be edited. But that's the only place you can see it.

Please look at the right place. In page source the orphaned object (-->)is located at number 654, below the closing javascript closing tag.

Many people claimed they are buried in folders between ... and .... You need to appeal to Blogger Team to kindly open all the content in those folders, otherwise you won't see the offending objects.
Chuck Croll said…
Hi Freelance,

Thanks for your feedback!

We are talking about the same thing - it's just that finding the symptom ("-->") and the problem are separate.

You can only see the symptom on the blog, as displayed. The problem is buried in a macro library, which can't be opened. Only the blog owner can see the problem, by using the Template HTML editor - and the symptom can be seen only after the blog is published, and displayed.

Popular posts from this blog

Custom Domain Migration - Managing The Traffic

Your blog depends upon traffic for its success.

Anything that affects the traffic to your blog, such as any change in the URL, affects the success of your blog. Publishing the blog to a custom domain, like renaming the blog, will affect traffic to your blog. The effects of the change will vary from blog to blog, because of the different traffic to every different blog.Followers. People who find your blog because of recommendations by other people.Search engines. Robotic processes which methodically surf your blog, and provide dynamic indexing to people who search for information.Subscribers. People who read your content from their newsfeed reader, such as the dashboard Reading List.Viewers. People who read your content from their browser.No two blogs are the same - and no two blogs will have the same combinations of traffic sources.

Stats Components Are Significant, In Their Own Context

One popular Stats related accessory, which displays pageview information to the public, is the "Popular Posts" gadget.

Popular Posts identifies from 1 to 10 of the most popular posts in the blog, by comparing Stats pageview counts. Optional parts of the display of each post are a snippet of text, and an ever popular thumbnail photo.

Like many Stats features, blog owners have found imaginative uses for "Popular Posts" - and overlook the limitations of the gadget. Both the dynamic nature of Stats, and the timing of the various pageview count recalculations, create confusion, when Popular Posts is examined.