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 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

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

With Following, Anonymous Followers Can't Be Blocked

As people become used to Blogger Following as just another tool to connect people, they start to think about the implications . And we see questions like How do I block someone who's been following my blog secretly? I couldn't see her in my Followers list (hence I couldn't use the "Block this user" link), but I have looked at her profile and could see that she's Following my blog. Following, when you look at the bottom line, is no more than a feed subscription and an icon (possibly) displayed on your blog, and linking back to the profile of the Follower in question. If someone Follows your blog anonymously, all that they get is a subscription to the blog feed. If you publish a feed from your blog, and if the feed is open to anybody (which, right now, is the case ), then it's open to everybody. If someone wants to use Following to subscribe to the feed, you can't stop this. You can't block it before, or after, the fact. You can't Block w