|
|
Thread Tools | Display Modes |
|
#1
|
|
|
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 |
|
|
|
|
#2
|
|
|
Smug Hero
|
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; } |
|
|
|
|
#3
|
|
|
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 |
|
|
|
|
#4
|
|
|
Smug Hero
|
I'm not seeing them move on this end.
|
|
|
|
|
#5
|
|
|
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 |
|
|
|
|
#6
|
|
|
Smug Hero
|
Change the position: absolute; line to position: fixed;
|
|
|
|
|
#7
|
|
|
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 | |
|
|