Back To Top - All The Way!

  • 1
  • Question
  • Updated 9 years ago
  • Answered
Is there a way to make the Back To Top anchors point all the way to the very top of the pages (ie to the top menu tabs and banner) instead of immediately below the banner?

Would be a nice logical touch.

Site is www.aconitejewel.com

Cheers
Paul
Photo of Paul Caspall

Paul Caspall

  • 174 Posts
  • 4 Reply Likes
  • hopeful

Posted 9 years ago

  • 1
Photo of RSPublishing

RSPublishing

  • 298 Posts
  • 9 Reply Likes
Hi Paul

Here is something i found relating to your problem. Try this and keep me posted as to whether your problem is fixed or still persists and i will assist with a 'new' solution.

http://www.yourhtmlsource.com/text/in...
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
Hello Paul

Perhaps you could use something like this example I've created on my test page: http://sanja3.yolasite.com/backtotop
Photo of Paul Caspall

Paul Caspall

  • 174 Posts
  • 4 Reply Likes
Hi Rynaldo

I must be missing something as I already use the suggested method. It works fine, but only sends the user as far back up as it can - to the point immediately below the top menu and banner. This is because the anchor point is positioned at that exact spot (highest position in body), and to my knowledge cannot be placed higher within these templates. So I fully understand why my anchors are returning the user to this position (as that's where the destination code is placed), but what I want to do is send them all the way up to the menu and banner. Then they won't (a) wonder where the banner and top menu 'disappeared to', and (b) have to scroll back up to access the top menu. If you have a look at our site, you'll see that the anchors work beautifully for taking the user back up to sub-menus for each page, but not that bit further to the very top.

Cheers
Paul
Photo of Paul Caspall

Paul Caspall

  • 174 Posts
  • 4 Reply Likes
Hi Sanja

I looked at your test page. Interesting idea with the floating anchor, but is it functioning as an anchor or reloading the page? And it only works the first time for me. Successive attempts produce no result.

Cheers
Paul
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
Hmm... I'll have to play around with this a bit further. Maybe I can find something else similar to this idea that would work for you. Please leave this with me for another day :)
Photo of Paul Caspall

Paul Caspall

  • 174 Posts
  • 4 Reply Likes
Okay, thanks.
I think the problem is with not being able to 'point' via code to any position above the body of html. ie the top menu and banner are off-limits within the template.

Paul
Photo of Paul Caspall

Paul Caspall

  • 174 Posts
  • 4 Reply Likes
Rynaldo

The top menu is not movable (to my knowledge).

Paul
Photo of RSPublishing

RSPublishing

  • 298 Posts
  • 9 Reply Likes
Hey Paul

Yeah that's right - well, unless you change your style (template) as far as i know. But then again , it's not something you just do - specially not if you have already structured your website. However, i do think it is possible to just change your template style - something palcing your navigation vertical left/right or below banner without changing the page layouts. If you do get right, please keep me updated. Thank You
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
Hello Paul

I've been trying to get this work but unfortunately, I have not found something that worked consistently or in the manner that you would want. I'm sorry that I don't have better news for you.
Photo of papa

papa

  • 327 Posts
  • 20 Reply Likes
Paul Caspall

Try this code

<!--

<center>
<a style="color:#000000;" href = '#'>Return To Top Of Page</a>
</center>

-->

Working example of this code to view before adding to your site is at http://anchorsite.yolasite.com/

I believe I have it on all the page

You can change color with-in this code or remove it all together (style="color.#000000;")

No Matter what page you put this on you'll return all the way to the very to of that page

Papa
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
Fantastic help, Papa! It was so simple and yet I kept missing this! You are definitely well-anchored with this! ;)
Photo of Paul Caspall

Paul Caspall

  • 174 Posts
  • 4 Reply Likes
Thanks Papa
I did that very thing earlier today. :)
I received virtually the same advice from a helpful fellow last night, and have already implemented the changes. Result is all I was hoping for.
So thank you also for helping out; it's nice to have folks around who can help you and who take the time to do just that.

:)

Cheers
Paul