back to top code
TallPhotoGuy
Registered Users Posts: 160 Major grins
wowography wrote: »Thanks for the feedback, Oops..I did not realize this page was built using different theme. I have corrected & thanks again!
MakeMeShutter wrote: »Beautiful site, love the home page!
I had a very hard time reading the white text on your about page with that particular background.
I also love the "back to top" button at the bottom of your gallery images. I wish SmugMug would implement this as well.
Let's try this again.
Where can one get the back to top code
Thanks
0
Comments
Try adding this to a HTML block on the page(s) that you require a 'Back to Top'.... you will need to insert your own image link into the code (I have left mine in as reference).
You can either create your own image in Photoshop or download a image from google images.
[HTML]<a style="position: fixed; bottom:5px; right:30px;" href="#" title="Back to Top"><img style="border: none;" src="http://www.kingswoodphotography.co.uk/photos/i-CshcT6Q/0/Ti/i-CshcT6Q-Ti.png" alt="image" /></a>[/HTML]
Adjust your bottom and right margin to suit..... you can change the right to either left or center (your choice).
Robin
Add this to an html block at the top.
<div id="topButton">
<a href="#top">BACK TO TOP</a>
</div>
Add this to the blocks CSS tab. I add this to only pages I want it on not whole site.
You can see it in action on my homepage. Even works on my iPhone which is
a bitch scrolling back to the top.
My Website index | My Blog
I know there is code referenced in some of the sticky links. Would it be possible to have a user contributed library where code like this is placed. There is a ton of good code in the various threads that unless you really search or know it's there for the most part is not known
Problem is it hides in lightbox view for every gallery but it doesn't hide on my homepage in lightbox.
I can not find a class to hide it on my homepage lightbox.
Any solution?
My Website index | My Blog
For your topButton CSS, change the z-index from 9999 to 1. By setting it to 9999 you're having it always displayed in front of the lightbox. By setting it to 1 you make it so it's on top of the homepage images but behind the lightbox.
Former SmugMug Product Team
aaron AT aaronmphotography DOT com
Website: http://www.aaronmphotography.com
My SmugMug CSS Customizations website: http://www.aaronmphotography.com/Customizations
Just noticed that the galleries where it worked ok had it set to 99.
My Website index | My Blog
You'll only see the edit blocks when you're in customize mode. If you publish it, it should show up when you go to the page. Sometimes when I go back into customize mode it becomes really hard to find the content block I placed. The easiest way to find them is to look at the customize sidebar (usually on the right, where it says "Homepage", "All Folders", "Entire Site", etc) and make sure you're on the "Content" tab. It should have a listing of all the content blocks above the "Add Content Block" text. You can find the "HTML" block and click the little wrench so you can edit it again.
Former SmugMug Product Team
aaron AT aaronmphotography DOT com
Website: http://www.aaronmphotography.com
My SmugMug CSS Customizations website: http://www.aaronmphotography.com/Customizations
SmugMug setup & customization services. Contact me!
Proud & helpful Smugger since 2009. Please hire me for Support Hero!!
I first contacted Jill V. in April 2011 & I even wrote a poem.
My Website index | My Blog
SmugMug setup & customization services. Contact me!
Proud & helpful Smugger since 2009. Please hire me for Support Hero!!
I first contacted Jill V. in April 2011 & I even wrote a poem.
Thank you!
Is there an additional CSS code needed to make it disappear?
Nice gallery BTW.
One other little thing that happens:
I added the HTML block for this code, and then did some editing on other blocks. While still in customize mode I then couldn't find the new html block (on the page) to continue editing. On the right-side flyout it showed as the last block in the long list. I expected to see it at the top of the list, corresponding to where it lives on the main page.
After I did Done/Publish, and went back into customize mode, the block had moved to the top of the list on the right-side flyout, where it belonged.
This is my version; I opted to put it on the far right, hope I did the code tweaks right to achieve that in the most efficient manner: http://www.joinrats.com/RatHealth/SOUNDS/HealthyOrSickSqueaks
It's interesting that once one clicks the button, the URL adds the top code (#top) which stays in place until one leaves the page and re-enters it. I wonder if that matters if someone copies the URL with #top and sends that out to the world...
My Website index | My Blog
Here's the HTML:
Here's the CSS:
My Website index | My Blog
Very pretty - but, invisible mostly at least on what I see.
I put an arrow image on my home page, which looks fine except for the border.
My effort at the code:
Thankssss
Oops, left out the link: http://www.joinrats.com/
My Website index | My Blog
My Website index | My Blog
I just modified it and then saw your post. Now it looks like this. I'm most likely going to mess with it more later this week.
I forgot some folks add borders to their images! My bad...
http://www.joinrats.com/
A bit of humor for your day.
That looks nice!
Thanks Allen for the bit that adds the pop-up text; made my day.
http://www.aaronmphotography.com/Events/Weddings/Chris-and-Sarah-2013/
up_arrow.gif
HTML:
Note: Your code requires the HTML content block be placed at that TOP of the page. Using this code, it can be anywhere.
And the CSS:
Former SmugMug Product Team
aaron AT aaronmphotography DOT com
Website: http://www.aaronmphotography.com
My SmugMug CSS Customizations website: http://www.aaronmphotography.com/Customizations