Jump to content

Portfolio images

Recommended Posts

Hi everyone,

I added a portfolio section to my homepage, and the default is static images with buttons that will take you to their respective pages. Is there code I can put in so that:

1. The image will change when you hover over them (image without hover, then text description and no image with hover--- how would it be oriented for mobile-- text underneath?)

and

2. Turning those images into buttons that would take you to their respective pages

 

I'm not entirely sure what is possible/ what is not, so if anyone has feedback or a code snippet I can throw in, I'd greatly appreciate it!

Link to comment
  • Replies 5
  • Views 1.4k
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 weeks later...
On 3/4/2024 at 3:17 AM, DNH said:

@tuanphan Apologies for just seeing your reply! This is my old site, but I'm building a new one and basically instead of always seeing the text underneath the project images, I want it to be that when you hover the image disappears, and text appears. Obviously, for mobile the text will have to always be there. Is there a way for me to make this work? https://www.daniellenicoleharris.com/ui/ux-design

Got it. You want to apply effect on this page https://www.daniellenicoleharris.com/ui/ux-design

or?

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

To change image on hover, you can use this code to Website > Website Tools > Custom CSS (this code for first image, if it works, I will send code for other items)

a.grid-item[href="/ui/ux-design/national-park-service-redesign-3w987"]:hover img {
    content: url(https://cdn.pixabay.com/photo/2023/04/11/13/27/bird-7917250_1280.jpg);
}

 

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.