• Gear
  • Shots
  • Photo Craft
  • Video
  • Wide Angle
  • Support
  • New Stuff
  • More
Support SmugMug Customization Social Media Icons in Header

FAQtoid

Ever wanted to create an Avatar? Creating an Avatar!

Searching Dgrin with Google Searching with Google

Dgrin Challenges

Congratulations to the Winner of DSS #130 (Hot or Cold), Memol..

The next Dgrin Challenge DSS #131 (Music) is open for entries through June 24th, 2013 at 8:00pm PDT.

As always, we look forward to your participation but please do take a moment to read through the rules before posting your entry.

Past DSS Challenge Winners, DSS Challenge Rules, and other important DSS Challenge information is here.

Need some help with Accessories?

Tutorials

Ever find yourself wondering just how someone managed to create an image using different effects?

Here are three simple tutorials we hope will encourage you to try something new.

The Hot Seat

A lifelong interest in landscape photography has led Eyal Oren to make a study of his adopted hometown of Marblehead, MA. As you can see, his dedication is paying off!

Africa!

Dgrinners Harryb, Pathfinder, and others joined Andy Williams and Marc Muench on Safari in East Africa recently. Here are some awesome threads to check out!

 
Thread Tools Display Modes
Old Oct-22-2012, 11:35 AM
#1
androidt is offline androidt OP
Big grins
Social Media Icons in Header
I've added a Facebook and Google+ icons to the header with the following code to the Custom Header:

<!-- AddThis Follow BEGIN -->
<div id=AddThisBox>
<div class="addthis_toolbox addthis_default_style">
<a class="addthis_button_facebook_follow" addthis:userid="andrewthomas.0"></a>
<a class="addthis_button_google_follow" addthis:userid="106721125817540228206"></a>
</div>
<script type="text/javascript" src="http://s7.addthis.com/js/300/addthis_widget.js#pubid=xa-50856f25664510e6"></script>
<!-- AddThis Follow END -->
</div>

And the following code to the CSS:

#AddThisBox {
position: relative;
float: right;
padding-top: 35px;
padding-right: 20px;
}

All looks good on the homepage but within the gallery the icons are no longer in the header. Also, in the Galleries page, the icons are in the correct position but they move when the page is scrolled.

Can someone please help me get the icons to stay in place?
__________________
AndrewThomasPhotography
Old Oct-22-2012, 04:25 PM
#2
Smug Eric is online now Smug Eric
Smug Hero
Smug Eric's Avatar
Instead of this in your CSS:

#AddThisBox {
position: relative;
float: right;
padding-top: 35px;
padding-right: 20px;
}

Use this:

#AddThisBox {
position: absolute;
top: 35px;
right: 20px;
}
__________________
Eric
Support Hero and Customeister
http://www.smugmug.com/help
Old Oct-23-2012, 01:04 PM
#3
androidt is offline androidt OP
Big grins
Thanks Eric

On my Galleries page (that is made from a duplicate homepage) the social icons move when the vertical scrollbar is moved. Any idea how to fix this?
__________________
AndrewThomasPhotography
Old Oct-23-2012, 03:16 PM
#4
Smug Eric is online now Smug Eric
Smug Hero
Smug Eric's Avatar
I'm not seeing them move on this end.
__________________
Eric
Support Hero and Customeister
http://www.smugmug.com/help
Old Oct-24-2012, 08:41 AM
#5
androidt is offline androidt OP
Big grins
I've tested it on:
Chrome Version 22.0.1229.94 m
Firefox Version 10.0.1
IE Version 9.0.8112.16421
Safari Version 5.1.7
All display similar behavior on my 24" monitor. If you are testing it on Chrome or Safari, you'll need to resize the browser window to force the scroll bars to show up.

Here is a video that illustrates the behavior.
__________________
AndrewThomasPhotography
Old Oct-26-2012, 10:37 AM
#6
Smug Eric is online now Smug Eric
Smug Hero
Smug Eric's Avatar
Change the position: absolute; line to position: fixed;
__________________
Eric
Support Hero and Customeister
http://www.smugmug.com/help
Old Oct-26-2012, 12:31 PM
#7
androidt is offline androidt OP
Big grins
Thank you!
__________________
AndrewThomasPhotography
Tell The World!  
Similar Threads Thread Starter Forum Replies Last Post
How to place social media buttons in homepage? fabthi SmugMug Customization 10 Dec-17-2012 02:49 PM
General Social Media "Bar" DesptachesGallery SmugMug Customization 0 Aug-29-2012 01:18 AM
Social media sharing links - where to retrieve 'em? fabthi SmugMug Customization 2 Aug-14-2012 07:36 AM
Custom Header .png???.... and smiles Epiklesis SmugMug Customization 4 Nov-09-2008 05:22 PM
JUST this header on a specific gallery kbev SmugMug Customization 3 Nov-18-2006 08:31 PM


Thread Tools
Display Modes

Posting Rules  
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump