Jump to content

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

Go to solution Solved by Beyondspace,

Recommended Posts

Posted

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.

  • Solution
Posted
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

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> No-code customisations for Squarespace

Posted

@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

Posted
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;
}

 

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> No-code customisations for Squarespace

  • 4 months later...
Posted

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

Posted
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

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

  • 1 year later...
Posted
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

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

  • 1 month later...
Posted

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";
}

 

Posted
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;
}

 

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> No-code customisations for Squarespace

  • 8 months later...
Posted

hello all, I only have a basic plan so I am wondering if that's why I can't do a custom icon?

 

My site is  https://www.themelgoexperience.com/

 

My bandcamp is https://melissagordon.bandcamp.com/music

 

I'd just like the icon at the bottom to be the bandcamp logo and not the link icon. Is that just not possible with a basic plan? Any feedback is appreciated, this area is not my strong suit.

thank you,

Melissa

Posted
On 8/17/2023 at 12:07 AM, themelgoexperience said:

hello all, I only have a basic plan so I am wondering if that's why I can't do a custom icon?

 

My site is  https://www.themelgoexperience.com/

 

My bandcamp is https://melissagordon.bandcamp.com/music

 

I'd just like the icon at the bottom to be the bandcamp logo and not the link icon. Is that just not possible with a basic plan? Any feedback is appreciated, this area is not my strong suit.

thank you,

Melissa

Add this to Design > Custom CSS or Website > Website Tools > Custom CSS

/* add Bandcamp icon */
footer.sections a[href*="bandcamp"] svg {
    display: none;
}
footer.sections a[href*="bandcamp"] div {
    background-image: url(https://static1.squarespace.com/static/628cdee1a5d6744370f3ec3d/t/6368f9583c59062c1a4ab3b3/1667823960158/bandcamp-button-circle-line-white-512.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
	transform: unset !important;
    filter: invert(1);
}

 

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!)

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.