cutmypic.png

Aloha,我是娄琦彬,欢迎来到的我的个人网站 :-)

一句话了解我——

复旦大学计算机科学2015届毕业生,前Google软件工程师,现就职于Squarspace,一个步履不停的人。

自称是码农界里写诗写的最好的,文学界里拍照拍的最好的, 摄影圈里喝酒喝得最优雅的,狄俄尼索斯门徒里走过的路最长的。


他要这尘世间的上帝之国

—— 米兰·昆德拉

How to Add Custom Social Icons to Squarespace Website

How to Add Custom Social Icons to Squarespace Website

If you are using Squarespace to build your own website, depending on your country, you might want to add social links specific to your region but realize that Squarespace doesn’t provide the social icon for those sites out of box. You can find all natively supported social icons in this KB article. For me, I’d like to add social links for Weibo, Zhihu and Wechat so I can further connect with my readers among those popular Chinese Soical/Content discovery sites.

I use the Code Block to add my custom HTML code. Here is how it looks like in the end:

There custom social icons sitting above the native social link block. Scroll down to the bottom of this page to have a live demo!

There custom social icons sitting above the native social link block. Scroll down to the bottom of this page to have a live demo!

Below is the complete code snippet for my implementation.

This implementation has a few features:

  1. auto center within the view page

  2. keep the same icon size with the native social icons (20px)

  3. keep the same spacing between icons

  4. allow to supply your preferred icon style by using an external icon image

  5. if you hover on Wechat icon, a widely used UX pattern is showing the Wechat QR code for users to scan with their Wechat app

Huge shout out to iconfinder service for providing varieties of commonly seen social icons in PNG and SVG format with multiple size options. I highly recommend using it to find social icons you want to add to your site.

If you have any trouble or question regarding using this snippet code, please leave a comment below or in the original Github snippet comment section. Cheers~

Leo


Optimize AddThis Social Sharing Script for Faster Page Loading Speed

Optimize AddThis Social Sharing Script for Faster Page Loading Speed

DeFi从入门到精通之Compound——去中心化的货币市场

DeFi从入门到精通之Compound——去中心化的货币市场