/sites/community?hl=en
/sites/community?hl=en
3/8/18
Original Poster
Kim Louise Higgs

'return to top'

I would like to add a 'return to top' button at the bottom of each page on my site, as they are quite lengthy.  Is there a way to do this?
Community content may not be verified or up-to-date. Learn more.
All Replies (17)
ChiefChippy2
3/8/18
ChiefChippy2
Maybe hyperlink it to the same page so it will reload ( releading users to the top of the page)
k8oms
3/8/18
k8oms
The problem is that the link will open in a new tab and there is no way to make it open in the same tab.

We can send feedback to the developers and ask for a 'Return to top' link option.
k8oms
3/8/18
k8oms
One workaround is to create a document in Google Drive that uses the table of content feature.

PhilsImaging
3/8/18
PhilsImaging
Steegle answered the question - no page anchor.  See /sites/forum/AAAATAKBXDQ9GMQf7MEpFw

And can't use page link on the same page.  

I want this feature too.
ChiefChippy2
3/8/18
ChiefChippy2
Maybe some scripts -
window.location.reload
PhilsImaging
3/8/18
PhilsImaging
Louis-Victor - window.location.relad -  if somebody could provide the code and show that it works I would be very interested.
ChiefChippy2
3/8/18
ChiefChippy2
*reload

IMPORTANT CORRECTION -  the right script is location.reload().
The script will not work because the embedded code will make the CODE reload, not the page. We cannot directly insert a code ( I suppose not) into googe sites : meaning if the console log is on, the code is directly written, instead of linking to another website.
Jack Collin
3/9/18
Jack Collin
You can make it work. If you make a text link to the page you want the "return to top" link on on another page, you can then copy-paste it into the right place. The link then reloads the page as if you first navigated there. It's not super clean, but it does work.

Example:

If you have a page titled "Dogs" and one titled "Cats" and you want a 'return to top" link on the Dogs page, you first make a text link on the Cat page to the Dog  page (Insert text box-insert link- "Dogs") and make sure you change the text to "return to top". You then copy and paste that  onto the "Dogs" page and delete the link from the Cats page.
Then repeat the process the other way around.

Like I said- not clean, but not too complicated, and it works.
PhilsImaging
3/9/18
PhilsImaging
Jack Collin, Oh that is winner!!!  It works!  Yahoo!  Shame cannot do that in site wide footer.  But it is a good start!
k8oms
3/9/18
k8oms
Be sure to send feedback to the developers and ask for a 'Return to top' link option. If enough people do it maybe it will happen.
6 MORE
ChiefChippy2
3/10/18
ChiefChippy2
The more I look at this forum, the more new google sites seem to be incomplete. Of course, it is developing, but they will need a lot of progress to fully develop it. In the speed google is developping, it would be a matter of time ( 3 or 4 years) before classic sites can be depreciated.

Just to mention that for me, the hyperlink page reload works even without the process Jack Collin mentioned in classic sites.

Wonder why window.open("...","_self") doesn't work correctly.
Were these replies helpful?
How can we improve them?
 
This question is locked and replying has been disabled. Still have questions? Ask the Help Community.

Badges

Some community members might have badges that indicate their identity or level of participation in a community.

 
Expert - Google Employee — Googler guides and community managers
 
Expert - Community Specialist — Google partners who share their expertise
 
Expert - Gold — Trusted members who are knowledgeable and active contributors
 
Expert - Platinum — Seasoned members who contribute beyond providing help through mentoring, creating content, and more
 
Expert - Alumni — Past members who are no longer active, but were previously recognized for their helpfulness
 
Expert - Silver — New members who are developing their product knowledge
Community content may not be verified or up-to-date. Learn more.

Levels

Member levels indicate a user's level of participation in a forum. The greater the participation, the higher the level. Everyone starts at level 1 and can rise to level 10. These activities can increase your level in a forum:

  • Post an answer.
  • Having your answer selected as the best answer.
  • Having your post rated as helpful.
  • Vote up a post.
  • Correctly mark a topic or post as abuse.

Having a post marked and removed as abuse will slow a user's advance in levels.

View profile in forum?

To view this member's profile, you need to leave the current Help page.

Report abuse in forum?

This comment originated in the Google Product Forum. To report abuse, you need to leave the current Help page.

Reply in forum?

This comment originated in the Google Product Forum. To reply, you need to leave the current Help page.