Jump to content

Add graphic behind navigation pages on hover

Go to solution Solved by tuanphan,

Recommended Posts

I'm building a website for a client, and she wants a brushstroke png file to appear behind the individual navigation pages on hover. She ideally wants a different color for each, but at this point, it's fine if I can just get one to appear for all the pages. Does anyone know how to do this? I tried following a YouTube video which didn't work.

Link to comment
  • Replies 9
  • Views 1.1k
  • Created
  • Last Reply

Top Posters In This Topic

20 hours ago, laurentaylar said:

Link: https://helen-kirkum.squarespace.com/

password: helenkirkum

It's on Squarespace 7.0 - Rally/Brine family

This was the video I tried to watch but it didn't work for me: 

 

Thanks!

 

You mean like this?

/* Products item */
.Header-nav-item[href="/products"]:hover {
    background-image: url(https://beaverhero.com/wp-content/uploads/2020/04/squarespace-add-image-block1-min.png);
    color: transparent !important;
    background-repeat: no-repeat;
}

image.thumb.png.1c7549e6105dc92cc58ecac23531afd8.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 5/22/2021 at 5:15 AM, tuanphan said:

You mean like this?



/* Products item */
.Header-nav-item[href="/products"]:hover {
    background-image: url(https://beaverhero.com/wp-content/uploads/2020/04/squarespace-add-image-block1-min.png);
    color: transparent !important;
    background-repeat: no-repeat;
}

image.thumb.png.1c7549e6105dc92cc58ecac23531afd8.png

 

Thank you!! I think so but it doesn't seem to be working when I change out the image. When I test it, the navigation title goes white: https://www.loom.com/share/c009af4dd3e84daaaef8a300039a10cb

From the YouTube video I provided, that's exactly what I want, except I need the images to appear only on hover.

 

Link to comment
On 5/24/2021 at 9:35 PM, laurentaylar said:

 

Thank you!! I think so but it doesn't seem to be working when I change out the image. When I test it, the navigation title goes white: https://www.loom.com/share/c009af4dd3e84daaaef8a300039a10cb

From the YouTube video I provided, that's exactly what I want, except I need the images to appear only on hover.

 

Can you keep the code in Custom CSS? We can check it 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!)

Link to comment
  • Solution
4 hours ago, laurentaylar said:

Sorry, I just added it back in.

Use this new code

.Header-nav-item[href="/products"]:hover {
    background-image: url(https://static1.squarespace.com/static/609bf3a05454d3241cf1d697/t/60a6c8b3d5bb325fd26001ae/1621543092037/backer_yellow.png) !important;
    color: transparent !important;
    background-repeat: no-repeat;
    background-size: contain;
}

 

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/26/2021 at 11:54 AM, tuanphan said:

.Header-nav-item[href="/products"]:hover { background-image: url(https://static1.squarespace.com/static/609bf3a05454d3241cf1d697/t/60a6c8b3d5bb325fd26001ae/1621543092037/backer_yellow.png) !important; color: transparent !important; background-repeat: no-repeat; background-size: contain; }

THANK YOU SO MUCH!! You're a lifesaver Tuan!

Link to comment
On 5/28/2021 at 1:22 AM, laurentaylar said:

THANK YOU SO MUCH!! You're a lifesaver Tuan!

Do you want to fix these issues?

Site URL – https://helen-kirkum.squarespace.com/

1. (Tablet-Homepage) reduce text size?

helen-kirkum.squarespace.com-01-min.png

2. (Tablet-Homepage) Increase text width?

helen-kirkum.squarespace.com-02-min.png

3. (Tablet-Homepage) Similar

helen-kirkum.squarespace.com-03-min.png

4. (Mobile-Homepage) Make client lists side by side?

helen-kirkum.squarespace.com-04-min.png

5. (Tablet-Products)

helen-kirkum.squarespace.com-05-min.png

6. (Tablet-Projects)

helen-kirkum.squarespace.com-06-min.png

 

7. (Tablet-Make to order) Increase text width?

helen-kirkum.squarespace.com-07-min.png

8. (Tablet-Make)

helen-kirkum.squarespace.com-08-min.png

9. (Tablet-Make) Increase text width?

helen-kirkum.squarespace.com-09-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

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.