Jump to content

How can I change the hover color on a custom social media icon?

Recommended Posts

Site URL: https://typeaprofessionals.com

Hello! For my social media icons, I was able to replace Squarespace's generic link icon with a customized Google icon using the code below (and uploading an image of the Google icon).

However, I would like the Google icon to hover on the same color as my other social media icons. Does someone know how to add to my code below to make this work?

Thank you in advance!

------

//replace link icon with Google icon//

.sqs-svg-icon--list a:nth-of-type(2) { svg {  display:none;  }  background-image: url(https://static1.squarespace.com/static/5ec8617eea936a6584ab0cca/t/603c4d56d5c9360a36489e3a/1614564694083/G+icon.png);  background-size: 83%;  background-repeat: no-repeat;}


//social media icons color//

//standard color//
.sqs-use--icon {
  fill: #d9d9d6 !important;
}

//social media icons color on hover//
.sqs-svg-icon--wrapper:hover {
  .sqs-use--icon {
    fill: #babc16 !important;
  } 
}

Link to comment
  • Replies 27
  • Views 2.3k
  • Created
  • Last Reply
6 hours ago, pixies1 said:

Site URL: https://typeaprofessionals.com

Hello! For my social media icons, I was able to replace Squarespace's generic link icon with a customized Google icon using the code below (and uploading an image of the Google icon).

However, I would like the Google icon to hover on the same color as my other social media icons. Does someone know how to add to my code below to make this work?

Thank you in advance!

------

//replace link icon with Google icon//

.sqs-svg-icon--list a:nth-of-type(2) { svg {  display:none;  }  background-image: url(https://static1.squarespace.com/static/5ec8617eea936a6584ab0cca/t/603c4d56d5c9360a36489e3a/1614564694083/G+icon.png);  background-size: 83%;  background-repeat: no-repeat;}


//social media icons color//

//standard color//
.sqs-use--icon {
  fill: #d9d9d6 !important;
}

//social media icons color on hover//
.sqs-svg-icon--wrapper:hover {
  .sqs-use--icon {
    fill: #babc16 !important;
  } 
}

You should use image editor to create the image with new color and add this css for hover 

.sqs-svg-icon--list a:nth-of-type(2):hover {
    background-image: url(-hover-image-url);
    background-size: 83%;
    background-repeat: no-repeat;
}

 

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 No-code customisations for Squarespace (+100 Spark plugin customisations)
🚀 Learn how to rank new pages on Google in 48 hours!

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

Link to comment
41 minutes ago, pixies1 said:

Thank you bangank36, I uploaded a green version of the icon and added your CSS, but now the icon disappears on hover instead of turning green.

Any ideas?

 

you got to remove the placeholder text

url(https://static1.squarespace.com/static/5ec8617eea936a6584ab0cca/t/60494a58cccf6256af3a673e/1615415896842/google-icon-01+CHART.png)

 

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 No-code customisations for Squarespace (+100 Spark plugin customisations)
🚀 Learn how to rank new pages on Google in 48 hours!

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

Link to comment
  • 2 weeks later...
On 3/11/2021 at 6:36 AM, pixies1 said:

Haha, I thought I deleted your placeholder text when I pasted the new URL but now I see that I hadn't 🙃

It looks perfect!! Thank you for the elegant solution!!

 

Hi. I see some pages on tablet are a bit narrow. Do you want to change to 2 columns/row?

image.thumb.png.430c9c4c1766197a24969ee81a59d765.png

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
On 3/21/2021 at 3:51 AM, pixies1 said:

Yes! My site looks okay on a horizontal tablet view but vertical looks terrible, as you noticed 🙂

If you can instruct me how to fix it, I would be most grateful. Thank you!

Add to Design > Custom CSS

/* Projects on tablet */
@media screen and (max-width:991px) and (min-width:768px) {
div#page-section-5f6931e923817829139fed75 .span-2 {
    width: 32%;
}
div#page-section-5f6931e923817829139fed75 .span-2:nth-child(4) {
    margin-left: 34%;
}
div#page-section-5f6931e923817829139fed75 .span-2:nth-child(n+4) {
    margin-top: 20px;
}
}

 

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

Hi @tuanphan,

I redesigned my site and now the code that you previously provided to me to make my projects list section look great in tablet view no longer works, and my attempts to rework your code have been unsuccessful.

Can you please help me again? On my home page in the "We do it all. And then some." section, I'd like for that list of four columns to appear as just two (alphabetical) columns in tablet view.

https://www.typeaprofessionals.com/

 

Column 1: #block-yui_3_17_2_1_1620053498091_5173

Column 2: #block-yui_3_17_2_1_1620053498091_5821

Column 3: #block-yui_3_17_2_1_1620053498091_7815

Column 4: #block-yui_3_17_2_1_1620053498091_9427

🙂

Link to comment
On 5/2/2021 at 10:52 PM, pixies1 said:

Hi @tuanphan,

I redesigned my site and now the code that you previously provided to me to make my projects list section look great in tablet view no longer works, and my attempts to rework your code have been unsuccessful.

Can you please help me again? On my home page in the "We do it all. And then some." section, I'd like for that list of four columns to appear as just two (alphabetical) columns in tablet view.

https://www.typeaprofessionals.com/

 

Column 1: #block-yui_3_17_2_1_1620053498091_5173

Column 2: #block-yui_3_17_2_1_1620053498091_5821

Column 3: #block-yui_3_17_2_1_1620053498091_7815

Column 4: #block-yui_3_17_2_1_1620053498091_9427

🙂

Add to Design > Custom CSS

/* We do it all tablet */
@media screen and (max-width:767px) {
div#block-yui_3_17_2_1_1620053642909_82057+.row .span-3 {
    width: 50%;
}
}

 

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
On 5/2/2021 at 10:52 PM, pixies1 said:

Hi @tuanphan,

I redesigned my site and now the code that you previously provided to me to make my projects list section look great in tablet view no longer works, and my attempts to rework your code have been unsuccessful.

Can you please help me again? On my home page in the "We do it all. And then some." section, I'd like for that list of four columns to appear as just two (alphabetical) columns in tablet view.

https://www.typeaprofessionals.com/

 

Column 1: #block-yui_3_17_2_1_1620053498091_5173

Column 2: #block-yui_3_17_2_1_1620053498091_5821

Column 3: #block-yui_3_17_2_1_1620053498091_7815

Column 4: #block-yui_3_17_2_1_1620053498091_9427

🙂

Also, do you want to improve these?

Site URL – https://www.typeaprofessionals.com/

1. (Mobile-Homepage) Make buttons side by side

typeaprofessionals.com-01-min.png

2. (Mobile-Homepage) reduce white spacing?

typeaprofessionals.com-02-min.png

3. (Mobile-Homepage) Equal spacing between items?

typeaprofessionals.com-03-min.png

4. (Mobile-Homepage) Change to 2 logos/row?

typeaprofessionals.com-04-min.png

5. (Mobile-Homepage) reduce white spacing?

typeaprofessionals.com-05-min.png

6. (Mobile) Page looks long on mobile. Want to add a back to top button?

typeaprofessionals.com-06-min.png

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
13 hours ago, tuanphan said:

Add to Design > Custom CSS


/* We do it all tablet */
@media screen and (max-width:767px) {
div#block-yui_3_17_2_1_1620053642909_82057+.row .span-3 {
    width: 50%;
}
}

 

Worked, thank you! Is there a way to change the order of the columns in tablet view so the list reads in alphabetical order from top to bottom?

Current:

1st column     2nd column

3rd column   4th column

 

Preferred:

1st column     3rd column

2nd column   4th column

Link to comment
On 5/4/2021 at 10:28 PM, pixies1 said:

Worked, thank you! Is there a way to change the order of the columns in tablet view so the list reads in alphabetical order from top to bottom?

Current:

1st column     2nd column

3rd column   4th column

 

Preferred:

1st column     3rd column

2nd column   4th column

Hi. Which problem?

--

Sorry, my site is suspend so some images can't load properly.

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

I moved the projects list to the home page so the previous code you gave me doesn't work and I don't know how/where to get the new div code?? Sorry!!

I'd also love to improve the "testimonials page" on tablet and have the quotes be 2 columns across in 3 rows instead of 3 columns across in 2 rows. Is this possible?

 

Link to comment
On 5/8/2021 at 9:11 PM, pixies1 said:

I moved the projects list to the home page so the previous code you gave me doesn't work and I don't know how/where to get the new div code?? Sorry!!

I'd also love to improve the "testimonials page" on tablet and have the quotes be 2 columns across in 3 rows instead of 3 columns across in 2 rows. Is this possible?

 

Hi. Which code doesn't work? Can you describe the problem?

Can you share link to testimonial page?

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

Hi Tuan,

This code no longer works for the projects section on my homepage:

@media screen and (max-width:767px) { div#block-yui_3_17_2_1_1620053642909_82057+.row .span-3 { width: 50%; } }

I would like the 4 columns to appear as 2 columns in tablet view.

And on my testimonials page, I'd like the 3 columns to appear as 2 columns in tablet view.

https://www.typeaprofessionals.com/testimonials

Thank you!

Link to comment
4 hours ago, pixies1 said:

Hi Tuan,

This code no longer works for the projects section on my homepage:

@media screen and (max-width:767px) { div#block-yui_3_17_2_1_1620053642909_82057+.row .span-3 { width: 50%; } }

I would like the 4 columns to appear as 2 columns in tablet view.

And on my testimonials page, I'd like the 3 columns to appear as 2 columns in tablet view.

https://www.typeaprofessionals.com/testimonials

Thank you!

You got to find the new block id since each of them has different id using this tool

Squarespace ID Finder - Chrome Web Store (google.com)

For your case, add a new space on top of the row and change the id accordingly

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 No-code customisations for Squarespace (+100 Spark plugin customisations)
🚀 Learn how to rank new pages on Google in 48 hours!

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

Link to comment

Hi Bangan, thanks for the response! I have the block IDs for the 4 columns, I just don't know how to use them in CSS to get the 4 columns to appear as 2 columns in tablet view. 

Here are the block IDs:

#block-yui_3_17_2_1_1620053498091_5173

#block-yui_3_17_2_1_1620053498091_5821

#block-yui_3_17_2_1_1620053498091_7815

#block-yui_3_17_2_1_1620053498091_9427

Link to comment
On 5/12/2021 at 9:05 PM, pixies1 said:

Hi Bangan, thanks for the response! I have the block IDs for the 4 columns, I just don't know how to use them in CSS to get the 4 columns to appear as 2 columns in tablet view. 

Here are the block IDs:

#block-yui_3_17_2_1_1620053498091_5173

#block-yui_3_17_2_1_1620053498091_5821

#block-yui_3_17_2_1_1620053498091_7815

#block-yui_3_17_2_1_1620053498091_9427

Add to Design > Custom CSS

/* testimonials - tablet 2 columns */
@media screen and (max-width:991px) and (min-width:768px) {
div#block-yui_3_17_2_1_1619732613520_13491+.row .span-4 {
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}
}

 

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
18 hours ago, pixies1 said:

Yes! Ideally the columns would be equal in width. Thank you!

Add to Design > Custom CSS

/* tablet testimonials */
@media screen and (max-width:991px) and (min-width:768px) {
div#block-yui_3_17_2_1_1619732613520_13491+.row .span-4 .code-block {
    width: 50%;
}
}

 

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.