Contact Social Icons
Support Area › Forums › Epic › Contact Social Icons
- This topic has 4 replies, 2 voices, and was last updated 12 years, 5 months ago by
Bill Robbins.
-
AuthorPosts
-
June 5, 2014 at 16:42 #19932
Charles Smith
ParticipantBill,
I used a more colorful set of social media icons in the contact widget back in Epic 1.x. It was very simple…I just redid the exist graphic that is supplied with Epic 1.x. However this does not seem so simple in 2.x. This has been on my todo list for some time, but I just deployed yet another Epic site and this client wants me to match the contact widget with the iiRe Social Media widget we are using in home-top.How do I do this with Epic 2.x?
Chuck
BTW … look at the site… this one looks really sharp… client developed most of the graphics… Thanks for a great product.
June 5, 2014 at 17:30 #19934Bill Robbins
ParticipantChuck,
With the 2.0+ version, we went with a icon font instead of images so that it would be easier to change colors and add hover states since everything is made with text. That also makes things retina ready.
What you’ll essentially need to do is copy this section from the style.css file:
li#facebook a:before { content: "\e03c"; } li#twitter a:before { content: "\e02a"; } li#google a:before { content: "\e038"; } li#flickr a:before { content: "\e03b"; } li#yelp a:before { content: "\e024"; } li#itunes a:before { content: "\e070"; } li#rss a:before { content: "\e04e"; } li#vimeo a:before { content: "\e028"; } li#youtube a:before { content: "\e023"; } li#pinterest a:before { content: "\e031"; }and for all of those, change the content so that it’s just empty, all you want it to say is
content: "";The for each of those social icon li’s, you’ll want to add the background image for that link. For Pinterest it would be something like:
li#pinterest a { background-image: url(https://yoursite.com/image.png); }Just with the corresponding image URL. You may be able to pull that from the plugin’s CSS just changing the HTML to match the connect widget and the path for the images.
That’s essentially what you’ll need to do to swap out the text icons for graphic ones.
Let me know if you run into any questions,
Bill— that site does look nice by the way. Having great graphics to work with certainly makes things better.
June 5, 2014 at 18:42 #19936Charles Smith
ParticipantThanks Bill…
Two questions:
Are the images on one vertical strip (i.e. 32px x300 like Epic 1.x) or are they separate images for each?
Also are the images 32px still?
Chuck
June 5, 2014 at 20:54 #19939Charles Smith
ParticipantOkay so no such luck using the image from the HTML of the widget ..BUT …
I ended up using some code from Epic 1.1.9 I had on my hard-drive and uploaded a sprite from the plugin:
ul.social-icons li a { width: 32px; height: 32px; text-indent: -9999px; float: left; margin-right: 3px; background: url(/wp-content/uploads/2014/06/mobile-phone32_sprite.png) no-repeat; margin-bottom: 3px; }Then I used the background-position from the plugins CSS file (facebook for example):
li#facebook a { background-position: -544px -32px; }Added to DEV Site: fccilm.polishedwp.com
June 6, 2014 at 16:32 #19945Bill Robbins
ParticipantThat seems like it would be a working option too. You could go with any size icon you’d like to if you need to make those larger. Just change the height and width to match the new dimensions. You don’t have to use the image sprite, but it can save a few http requests which should speed things up slightly.
Let me know how that goes. We’ve just made it in from Mexico and I’ll be catching up again now.
-
AuthorPosts
- The topic ‘Contact Social Icons’ is closed to new replies.
