Jump to content

Custom Social Icon Color - Harris Theme/York Template Family

Recommended Posts

I'm desperately trying to get my social icons to be a custom color in the Harris theme (part of the York Template family).  

I've used a few different codes including @tuanphan's code:

#sqs-svg-icon--social #sqs-use--icon {
    #fill: 4a91b5 !important;
}

Figured out # works over . in this template.   However, no matter what I do, I cannot get the social icon (LinkedIn) to be a custom color.

TIA

Link to comment
  • Replies 2
  • Views 470
  • Created
  • Last Reply

Still haven't figured it out, but found this workaround using the code block:

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<a href="https://www.linkedin.com/company/62014" style="font-size:18px"target="_blank"aria-hidden="true" style=";color:#4a91b5"class="fa fa-linkedin"></a>

The only thing is, haven't figured out how to create hover styles since the code block seems to only allow html or CSS, not both, and the CSS injection area is being finicky in this template.

Link to comment

Can you share site url? We can check easier.

If you use Code Block, to add hover, edit your code to this code

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<a href="https://www.linkedin.com/company/62014" style="font-size:18px"target="_blank"aria-hidden="true" style=";color:#4a91b5"class="fa fa-linkedin"></a>
<style>
  [href*="/linkedin"]:hover .fa-linkedin {
  	color: red !important;
  }
</style>

 

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.