Help Center - Add an arrow to scroll back to the top of the page | Community
Skip to main content

Help Center - Add an arrow to scroll back to the top of the page

  • October 4, 2013
  • 60 replies
  • 0 views

Show first post
This topic has been closed for replies.

60 replies

  • December 16, 2013

@ Wes - Thank you for the quick response. For some unknown reason copying and pasting as plain text was not working using the code contained within the article but it worked fine using the line of code from your last comment. You rock.


ModeratorWes
  • Author
  • December 17, 2013

@Rocco - I believe that is where you issue is.  Did you skip Step 2 where you loaded the image into your Assets folder.  Once its upload right click on it and get the link.  That is the link you need to put in your CSS code like my comment above.  My comment worked above as that's pointing to my Zendesk image which means when I replace my image your image is gone to.  Make sure the link is from your Zendesk Assets area.  Let me know if you need further help pointing to your own image.


  • April 17, 2014

@Wes, I am having the same issue Rocco is having.  I did all of your steps and also reviewed the video to be sure.  I can scroll back  to the top by clicking where the arrow should be, but it doesn't appear.  I've uploaded the arrow to my own asset.  Any advice would be appreciated!


ModeratorWes

@Josh - Its hard to troubleshoot without seeing your site so if possible post a link to your site so I can see what's going on.  If you can't no big deal you can try the following:

background: url('/hc/theme_assets/249935/200002189/arrow_up.png') no-repeat;

Of course make sure this is pointing to your arrow that you uploaded.


  • April 17, 2014

@Wes - Thanks for the speed reply.  Our help center is help.imentor.org and I made you a test user account

Log in: testuser@testuser.com

Password: testuser

I'll delete the account after you take a look.  Go to the bottom right corner and you will see you can find the link that take you to the top even thought the image doesn't appear.


ModeratorWes

@Josh - thanks for the account and you can now delete it.  Your site looks great but I want take too many points off for that :-).

One tiny mistake in your CSS code - arrow_up.png' 

Change the end to a tick mark and that will fix your issue.  You can can also use the relative URL as /hc/theme/etc..

 


ModeratorWes

@Josh - pushed enter to fast I was saying your site looked great but it wasn't responsive :-)


  • April 17, 2014

THANK YOU!  What a great feature.  Sorry for the sloppy mistake.  I've been staring at this too long today.  Have a great day.


ModeratorWes

@Josh - Glad it worked and have a great day.


  • April 17, 2014

@Wes I think I figured out why both Rocco and I had the same problem.  We were copying the code directly from your above post and only replacing the link:

background: url('your URL will go here’) no-repeat;

 It wasn't until he copied and replaced the second link you posted that his issue resolved.  

background: url('/hc/theme_assets/249935/200002189/arrow_up.png') no-repeat;

Is it possible that your code up to have the tick replaced in the same way you had me change mine?


ModeratorWes

@Josh - I believe your are correct as it looks like the editor may have changed it when copying and pasting.  I've edited the article and made sure they were both tick marks.  Thanks for catching that.


  • April 17, 2014

@Wes: Forgive me for taking up too much time and for breaking what I'm sure is against forum protocol.  Andrea recommended I shout out to you on another issue (https://support.zendesk.com/entries/53726947). I don't know how to contact you other than by posting here on this forum.  


Jennifer16
  • April 17, 2014

Josh, the moderators are all-seeing. :)


  • April 17, 2014

@Jennifer Ha ha ha.  It feels that way.


Vladan
  • February 8, 2015

Thank you!


ModeratorWes
  • Author
  • February 9, 2015

@wlandan - You're welcome and enjoy!


  • April 16, 2015

Just study the possibilities of Zendesk customization. Awesome tip


  • July 28, 2015

@Wes - Is there some way that I can move the arrow to the left side of the screen instead of the right?


ModeratorWes

@Steffi - Sure just change the CSS  right:10px; to left: 10px;

 


  • July 28, 2015

@Wes - Thank you!


ModeratorWes

@Steffi - Your welcome best of luck.


ModeratorWes

@Everyone - Updated the entire solution to a newer and better way.  You can even adjust the colors of the svg icon.


  • May 16, 2016


  • November 9, 2017

I get it to work a little bit, but the arrow don't show. I am thinking it has to do with the .svg format?

Here you can (barely) see it showing up:

Using Chrome and win7


ModeratorWes

@Niclas - Hi - it sounds like there may be an issue with your CSS.  In order for me to troubleshoot further, I would need to see what you have.  Can you post the link to your Help Center?