How To Make Social Icons "Portable"
#1
Posted 22 September 2012 - 03:17 PM
The default social icons that come with the PageLines branding section look and "feel" (on hover) great. The only thing I wasn't crazy about was that I didn't want them in the header. I wanted them in the footer.
So I did a little bit of fiddling around and managed to find a way to make them somewhat portable and, at the same time, retain the nice hover behaviour.
Just copy and paste the code above into a footer widget (it also appears to work in sidebar widgets) and you'll have those beautiful social icons - with that great hover effect - in your footer.
Obviously, in the code above, you'll need to replace YOURURL with the actual URL for your site. You'll also need to replace YOURTWITTERID, YOURFACEBOOKPAGEURL, and other social profile links with your own.
If you didn't want to use one of the social icons, then simply select and delete the code for it between the opening <a and closing </a> tags.
Note: you may have to add/modify some CSS in order to make them display exactly how you want them to - e.g. I added the following CSS (to remove the absolute positioning and to center-align the icons inside the footer widget):
Depending on the number of icons you use, you'll need to adjust the width accordingly (I'm using six, for which 192px seems to be correct).
Anyway, hope this is useful.
#2
Posted 23 September 2012 - 12:46 PM
#3
Posted 23 September 2012 - 06:23 PM
#4
Posted 26 September 2012 - 05:21 PM
#5
Posted 08 February 2013 - 04:49 PM
![]()
#6
Posted 22 February 2013 - 03:54 PM
First of all this is great and I have it almost working, but I'm wondering if there is a typo in the code above?
I've installed this at:
You'll notice I'm getting:
icons" style="bottom: 12px; right: 1px;">
displaying before the icons.
I am using this in a universal sidebar installed in the header so maybe that is my problem?
I'm not much of a CSS coder but I also notices only two closing </div> and five opening <div> as well as no closing </section>
Any help would be greatly appreciated!
Thanks again for coming up with this if I can get it to work it's a perfect solution to our current need.
Jim ![]()
#7
Posted 22 February 2013 - 11:55 PM
Hi Jim, I'm assuming you've resolved this as I can no longer see the code appearing on your site before the icons.
Also tagged with one or more of these keywords: Resolved, social icons, move, portable, footer, sidebar
PageLines Framework →
Customizations →
Footer BackgroundStarted by mattv151 , Today, 01:30 AM |
|
|
||
Sidekick
Store Product Support →
Store Products →
Products by Evan Mattson →
Sidekick Sidebar Menu UsabilityStarted by basmati , 10 Jun 2013 |
|
|
||
PageLines Framework →
Customizations →
Several minor customizations. Properly described and illustrated.Started by victorypug , 01 Jun 2013 |
|
|
||
PageLines Framework →
Technical Support →
Missing Morefoot & FooterStarted by hibbsy78 , 31 May 2013 |
|
|
||
PageLines Framework →
Technical Support →
Launch Page - big black footerStarted by bwdsl247 , 27 May 2013 |
|
|


This topic is locked









