Jump to content

Social icons disappear on published version

Go to solution Solved by tuanphan,

Recommended Posts

Hi everyone!

Hope you're doing well. Just having a weird issue popup recently where I can see the social icons when editing the site but become invisible on the published version. Any idea what might be causing it and how we can fix it?

I've tried a few things on the forum like removing and adding again but no joy. It's in the footer and header.

Many thanks!

Link to comment
  • Replies 4
  • Views 1.2k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

I've used the following code given by @tuanphan to another user but I don't think it will work well with the social icon placement in the header and also the alignment on mobile doesn't work well if it works well on desktop as I can't resize the blue code block dimensions to centre it properly.

<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.1/css/all.css" integrity="sha384-vp86vTRFVJgpjF9jiIGPEEqYqlDwgyBgEF109VFjmqGmIY/Y4HV4d3Gp2irVfcrp" crossorigin="anonymous">
<ul class="t-social">
<li>
  <a href="https://www.linkedin.com/company/dataterminus" target="_blank">
  <i class="fab fa-linkedin-in"></i> 
  </a>
</li>
</ul>
<style>
  /* code block padding top bottom */
  .code-block {
    padding-top: 0;
    padding-bottom: 0;
}
  /* social icons code */
.t-social {
    display: block;
    margin: 0 auto;
    padding-top: 5px;
    text-align: left;
  	padding-left: 0;
}
  .t-social li {
  display: inline-block;
    margin: 0;
    line-height: 100%!important;
  }
  .t-social li i {
    font-size: 30px;
    margin: 0 20px;
    color: #FFFFF;
}
  .t-social li:hover i {
  	color: #FDD140;
  }
  ul.t-social li:before {
    display: none !important;
}
</style>

image.thumb.png.30a6eb9bf5eaef69b24e9c67bfa11811.png

Link to comment
10 hours ago, theuq said:

@tuanphan Thank you! I tried playing with that but didn't help because it gets fixed on desktop but then doesn't work on mobile. I just want it to look better on both devices and not sure how to go about it.

You can share link to your site, I will adjust code for mobile easier

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.