Jump to content

Add custom social icon instead of generic link for Bandcamp and Mixcloud

Go to solution Solved by Beyondspace,

Recommended Posts

Site URL: http://www.willkonitzer.com

Hi, I've added some social media icons for my site, but Bandcamp and Mixcloud aren't included with the standard Squarespace stylesheets. I'm hoping someone knows how I could replace the link icon that is currently there with the icons for Bandcamp and Mixcloud from font awesome.

I'm trying to use this custom css
 

@media only screen and (min-width:640px) {  .icon--fill:nth-of-type(4) { svg { display:none; }  background-image: url(IMAGEURL);  background-size: 100%;  background-repeat: no-repeat;  }  }  .header-menu-actions-action:nth-of-type(4) {  svg {  display:none;  }  background-image: url(IMAGEURL);  background-size: 100%;  background-repeat: no-repeat;  }

but I'm not sure how to incorporate the font awesome CSS. 

<i class="fab fa-mixcloud"></i>

I should have the font awesome style sheet loaded, and I'm sure his is fairly simple if you know how!

Any help much appreciated.

Link to comment
  • Solution
36 minutes ago, wkonitzer said:

Site URL: http://www.willkonitzer.com

Hi, I've added some social media icons for my site, but Bandcamp and Mixcloud aren't included with the standard Squarespace stylesheets. I'm hoping someone knows how I could replace the link icon that is currently there with the icons for Bandcamp and Mixcloud from font awesome.

I'm trying to use this custom css
 


@media only screen and (min-width:640px) {  .icon--fill:nth-of-type(4) { svg { display:none; }  background-image: url(IMAGEURL);  background-size: 100%;  background-repeat: no-repeat;  }  }  .header-menu-actions-action:nth-of-type(4) {  svg {  display:none;  }  background-image: url(IMAGEURL);  background-size: 100%;  background-repeat: no-repeat;  }

but I'm not sure how to incorporate the font awesome CSS. 


<i class="fab fa-mixcloud"></i>

I should have the font awesome style sheet loaded, and I'm sure his is fairly simple if you know how!

Any help much appreciated.

try

.header .icon {
    font-family: "Font Awesome 5 Brands";
    color: #fff;
}
.icon[href*="mixcloud"] svg,
.icon[href*="bandcamp"] svg{
  display: none;
}
.icon[href*="mixcloud"]:before {  
    content: "\f289";
}
.icon[href*="bandcamp"]:before {
    content: "\f2d5";
}

image.png.5637132080f572ab739fd93bac775c23.png

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
5 minutes ago, wkonitzer said:

@bangank36 This is awesome - exactly what I needed. One thing I noticed was on the mobile view the replacement icons are slightly out of alignment with the rest. If you have an idea how to correct that, that would be amazing, but if not, no problem - I appreciate the assistance.

 

-Will

try update the icon

.header .icon {
    font-family: "Font Awesome 5 Brands";
    display: flex;
    align-content: center;
    align-items: center;
}

 

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
  • 4 months later...
On 8/6/2021 at 9:44 PM, selkiemusic said:

Hi, I am having the same problem trying to use a Bandcamp icon in the header but the code didn't work for me. Instead the icon changed to an empty square. Am I missing something? I would also like for the icon to appear in the footer too. #cssnewbie

Hi. What is your site url? We can check easier

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
On 8/9/2021 at 4:04 AM, selkiemusic said:

 

Thank you! http://selkiemusic.com

Hi. Where is icon? I don't see it on header/footer

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • 1 year later...
On 11/7/2022 at 7:56 PM, TSU said:

Hi. I'm having a similar issue, trying to add a Bandcamp icon. This is my page:

https://thesevenups.com.au/

There is currently a small square where the icon should be.

Any help is much appreciated. Thank you!

To use above code, you need to add FontAwesome Library Link to top of Settings > Advanced > Code Injection > Header

<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.1/css/all.css" integrity="sha384-vp86vTRFVJgpjF9jiIGPEEqYqlDwgyBgEF109VFjmqGmIY/Y4HV4d3Gp2irVfcrp" crossorigin="anonymous">

 

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • 1 month later...

hi there, I've followed the guidance on this thread and have successfully added bandcamp and amazon icons from fontawesome in my header. however, i'm trying to have the same replacement icons in the footer, and ideally anytime a social block is used. can you help adjust the code? 

goldlakeband.com
pw: gold 

.header .icon {
    font-family: "Font Awesome 5 Brands";
    color: #F8ECF6;
    display: flex;
    align-content: center;
    align-items: center;
}
.icon[href*="bandcamp"] svg{
  display: none;
}
.icon[href*="bandcamp"]:before {
    content: "\f2d5";
}
.icon[href*="amazon"] svg{
  display: none;
}
.icon[href*="amazon"]:before {
    content: "\f270";
}

 

Link to comment
1 hour ago, itsbreezy said:

hi there, I've followed the guidance on this thread and have successfully added bandcamp and amazon icons from fontawesome in my header. however, i'm trying to have the same replacement icons in the footer, and ideally anytime a social block is used. can you help adjust the code? 

goldlakeband.com
pw: gold 

.header .icon {
    font-family: "Font Awesome 5 Brands";
    color: #F8ECF6;
    display: flex;
    align-content: center;
    align-items: center;
}
.icon[href*="bandcamp"] svg{
  display: none;
}
.icon[href*="bandcamp"]:before {
    content: "\f2d5";
}
.icon[href*="amazon"] svg{
  display: none;
}
.icon[href*="amazon"]:before {
    content: "\f270";
}

 

Try adding to Home > Design > Custom Css

footer [href*="bandcamp"]:before {
  content: "\f2d5";
  font-family: "Font Awesome 5 Brands";
}

footer [href*="bandcamp"] svg {
  display: none;
}

 

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment

My testing

image.thumb.png.27d2f5cb6294c638e4ca2be6102df592.png

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. 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.