UPDATED: Social Icon Content Block (500px, Email, LinkedIn)
leftquark
Registered Users, Retired Mod Posts: 3,784 Many Grins
All, we've released an update to the Social Icons block with the following changes:
- Remove LinkedIn
- Add 500px.com
- Add “Email” icon
Email allows you to have a way, besides using the “Menu” Content Block, to let visitors safely email you. We'll never expose your email address - it'll be hidden behind our contact form. Clicking “Email” will open the contact form. You'll have to have your “Contact Email” set in your Profile for this to work. If theyyoudo not have a verified Contact Email, we’ll display a warning message when you try to turn the “Email” icon ON.
Also of note, we’ve redone the “behind the scenes” to this content block so some your CSS tweaks may need updating (for the most part, the Social Icons CB's I've looked at, still work as they had). We’ve made it a lot smarter (using “Flexbox”) so re-arranging icons is now much easier. Please feel free to ask questions here if you need any help with CSS.
- Remove LinkedIn
- Add 500px.com
- Add “Email” icon
Email allows you to have a way, besides using the “Menu” Content Block, to let visitors safely email you. We'll never expose your email address - it'll be hidden behind our contact form. Clicking “Email” will open the contact form. You'll have to have your “Contact Email” set in your Profile for this to work. If theyyoudo not have a verified Contact Email, we’ll display a warning message when you try to turn the “Email” icon ON.
Also of note, we’ve redone the “behind the scenes” to this content block so some your CSS tweaks may need updating (for the most part, the Social Icons CB's I've looked at, still work as they had). We’ve made it a lot smarter (using “Flexbox”) so re-arranging icons is now much easier. Please feel free to ask questions here if you need any help with CSS.
dGrin Afficionado
Former SmugMug Product Team
aaron AT aaronmphotography DOT com
Website: http://www.aaronmphotography.com
My SmugMug CSS Customizations website: http://www.aaronmphotography.com/Customizations
Former SmugMug Product Team
aaron AT aaronmphotography DOT com
Website: http://www.aaronmphotography.com
My SmugMug CSS Customizations website: http://www.aaronmphotography.com/Customizations
0
Comments
Flex boxes are fun
Love it - especially that I do no longer need to use my "adapted...cannot remember probably youtube" icon for 500x, that's cool news
Just one minor thing: it does not quite work in Chrome version 50.0.2661.102 (64-bit) or Firefox version 46.0.1 (cutting off the first of 7 icons and moving the last from the menu block into the content block). It might not be working in IE either because the surrounding div lacks a specific width parameter (% would do the trick).
If you could add a flex-wrap: wrap; to the .sm-flex-row class it would do the trick - I can only check IE with some tricks right now, but will confirm tomorrow (June 6th somewhen around 1700 CET +2)
For those who want to do a manual fix adding the line feed add this to your Entire Page CSS - that should fix FF and Chrome:
Thanks a lot.
Lille Ulven
Sorry Lille, I'm not sure if I followed. What isn't working properly? If there's a small bug, I'd love to get it fixed - just wasn't sure what wasn't working.
Former SmugMug Product Team
aaron AT aaronmphotography DOT com
Website: http://www.aaronmphotography.com
My SmugMug CSS Customizations website: http://www.aaronmphotography.com/Customizations
For Chrome and Firefox (not sure what IE does prior to this fix) on a Mac El Capitan:
If you do not add the flex-wrap:wrap to the .sm-flex-row CSS all social icons will be put into one single line. If - as for my site - you use a rather slim menu on the left side and you have a few social icons (I have 7) this means that the first icon is moved out of the screen to the left and the last one is moved out of the "menubox" into the body part of the site.
Adding the flex-wrap:wrap to .sm-flex-row ensure that if the "line" is not wide enough to take on all social icons there will be a line feed and the social icons will be splitt into two or more lines. (Like they are right now on my site, as I added the CSS manually )
In Safari this works even without the flex-wrap, as Safari manages to squeeze the icons a little closer together so that they still fit into one line...of course if you used all possible social icons this still might mess up, but for my 7 it worked well.
Hope this helps to understand what I am talking about. I can provide screen shots tonight, for prior-my-fix and post-my-fix.
Best regards
Lille Ulven
This is how it is supposed to look like (when flex-wrap:wrap is used):
This is how it looks if the flex-wrap:wrap is missing from .sm-flex-row
You can see the fb-icon is missing and the email icon is moved into the page-body rather than the menu-bar.
Hope this helps to understand why flex-wrap:wrap is necessary here
Lille Ulven
Former SmugMug Product Team
aaron AT aaronmphotography DOT com
Website: http://www.aaronmphotography.com
My SmugMug CSS Customizations website: http://www.aaronmphotography.com/Customizations
Lille Ulven
Would you like it to be there? Certainly could add it! And I agree, I prefer to keep the site consistent.
Former SmugMug Product Team
aaron AT aaronmphotography DOT com
Website: http://www.aaronmphotography.com
My SmugMug CSS Customizations website: http://www.aaronmphotography.com/Customizations
I absolutely would like it there. I would think that all of the available social options should be available in the profile.
Former SmugMug Product Team
aaron AT aaronmphotography DOT com
Website: http://www.aaronmphotography.com
My SmugMug CSS Customizations website: http://www.aaronmphotography.com/Customizations
By the way is there a way to add a background-color to these icons that has the same size as the icon itself? If I just add background-color: white; in CSS to the icon-CSS it will be a bit too large, but I would like a white background, to enhance the contrast between the round shape and the icons sign (say the "f" within the Facebook circle should get white, but not the circle or an area outside the circle as well). This would at least for my website increase readability of these icons - mine are partly hard to decipher, in my opinion.
Thank you
Lille Ulven
As of now, unfortunately not, due to the way that we've created those icons. In the future, as we move towards using a new format for the icons, it may be (though again, I'm not sure it will be) since the icons have some amount of border built into them and would also change color.
You may be able to create a keyframe on the background that would leave the border portion transparent while adding color to the portion that's the icon. This might even work for the current implementation. Unfortunately I'm not yet a master on keyframes to offer you specific code.
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 out of curiosity, Why did you guys remove LinkedIn?
Many thanks
Max
Interiors Events Headshots Scapes
Former SmugMug Product Team
aaron AT aaronmphotography DOT com
Website: http://www.aaronmphotography.com
My SmugMug CSS Customizations website: http://www.aaronmphotography.com/Customizations