Rijn Posted August 29, 2020 Share Posted August 29, 2020 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
Rijn Posted August 29, 2020 Author Share Posted August 29, 2020 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
tuanphan Posted August 29, 2020 Share Posted August 29, 2020 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.