Skip to main content

Anchor Links, And Post Editor Compose Mode

Long ago, before my previous blog improvement, I would include a link to the top of the displayed page, at the end of my posts.

Before I added my "Top Of Page" button, I would compose my posts in "Edit HTML" mode, and at the end of each post, I would add

>> Top
<a href="#Top">&gt;&gt; Top</a>

That gave me a link to the top of the page, since I included an anchor link "Top" inside an HTML gadget, at the top of the page.

<a name="Top"></a>

That's simple enough, once you get used to adding the code.

There's a caveat here, though.

Having added the code
<a href="#Top">&gt;&gt; Top</a>
I have learned, the hard way that I cannot ever edit the post using Compose mode. Any time that I edit the post using Compose mode,
<a href="#Top">&gt;&gt; Top</a>
becomes
<a href="http://www.blogger.com/post-create.g?blogID=24069595#Top">&gt;&gt; Top</a>

The only solution was, that any time I created a post, I would add
<a href="#Top">&gt;&gt; Top</a>
last. Then, stay in "Edit HTML" for any more editing.

Blogger Engineering has been shown this problem a few times. It's possible that it is deeply embedded in the Blogger code base, and will require much work to be diagnosed.

In my case, I eliminated the need to add anchor links, by adding my "Top Of Page" button. That eliminates 99% of the anchor links, that I add to my posts.

This may be a problem which we have to know about, and avoid causing. Compose and install anchor links, after you finish using Compose mode - and beware toggling between Compose and HTML modes.

Comments

Chris S. said…
I've noticed that too, but I didn't realize it could be avoided by staying in HTML mode. Thanks for the tip!
This was driving me crazy! I found a more permanent solution - http://www.blogging.robertosblogs.net/2009/07/anchor-links-within-post.html

Glad to know I'm not alone!
LA Botchar said…
oh may the shine upon you all the days of your life!!! I have been trying for hours to get my anchor tags to work -- they would work in preview, I'd switch to "Compose" then publish....the published page wouldn't work.
This is the first tutorial - and I've looked at dozens!! -- that provided that handy little tip.
THANK YOU!!
Thanks! ugh that was annoying!
rn995 said…
Oh, Thank you!!! I was so confused why mine only worked once and I went back to do it again, again, and AGAIN... I finally come across your post and realized it was not my problem... sadly...this is a problem~

Popular posts from this blog

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?".

Add A Custom Redirect, If You Change A Post URL

When you rename a blog, the most that you can do, to keep the old URL useful, is to setup a stub post , with a clickable link to the new URL. Yo! The blog is now at xxxxxxx.blogspot.com!! Blogger forbids gateway blogs, and similar blog to blog redirections . When you rename a post, you can setup a custom redirect - and automatically redirect your readers to the post, under its new URL. You should take advantage of this option, if you change a post URL.

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.