Jump to content

Add buttons to Portfolio Gallery items

Recommended Posts

I would like to know if buttons can be added to each portfolio gallery image item, clicking on which redirects to the corresponding store page, for example. 

Can this functionality work simultaneously with lightbox settings on the gallery? 

(It is possible to add links to gallery items, which can link to any other page - but I want to retain the gallery as a lightbox-enabled gallery, instead of one where clicking the image does not enlarge image for better view but redirects to buy option). 

Link to comment

When you edit image >> it has an option to enter description, you can enter this syntax, then we can use CSS code to turn it to button.

Something like this

"The Plunge": Lower Yosemite falls plunging to its final destination. This intimate view of the waterfalls was accessible by scaling an off-trail ridge along the side wall of the mountain. 
<a class="view-more">View more</a>

Then add this to Design > Custom CSS or Website > Website Tools > Custom CSS

a.view-more {
	background-color: white !important;
	color: black !important;
	padding: 10px 20px !important;
	display: inline-block;
	margin-top: 10px;
	border-radius: 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

Thanks, this worked for the mobile version. 

What about for desktop screen? I am trying something with padding-top/bottom or margin-top/bottom. They did not work:

.light-caption {
    width: calc(~"50% - 80px") !important;
    padding-right: 5px;
    padding-left: 5px;
  padding-bottom: 0px;
  padding-bottom: -100px;
}

 

Link to comment
On 8/12/2023 at 5:31 PM, AKN said:

Thanks, this worked for the mobile version. 

What about for desktop screen? I am trying something with padding-top/bottom or margin-top/bottom. They did not work:

.light-caption {
    width: calc(~"50% - 80px") !important;
    padding-right: 5px;
    padding-left: 5px;
  padding-bottom: 0px;
  padding-bottom: -100px;
}

 

Which image did you add the code? I can check 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
  • 7 months later...

Is it possible to add Pinterset "Pin It" Button to portfolio images?  Client would love it on all images including the portfolio images. I have the default button set but it's only on some images.

Link to comment
11 hours ago, TheVibe said:

Is it possible to add Pinterset "Pin It" Button to portfolio images?  Client would love it on all images including the portfolio images. I have the default button set but it's only on some images.

Unfortunately it only supports certain pages, you can consider replicating your portfolio page with your blog page

image.png.a5d904a112f29c054e9ed7cf6d639350.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 4/11/2024 at 4:00 AM, tuanphan said:

Unfortunately it only supports certain pages, you can consider replicating your portfolio page with your blog page

image.png.a5d904a112f29c054e9ed7cf6d639350.png

Ahh I see. They wanted the button to look like this https://amberinteriordesign.com/project/are-we-there-yet/ but on all pages. By chance do you know if I could style the button like this? I will let them know as far as the portfolio goes.

 

Thanks Tuanphan!

Link to comment
On 4/19/2024 at 1:43 AM, TheVibe said:

Ahh I see. They wanted the button to look like this https://amberinteriordesign.com/project/are-we-there-yet/ but on all pages. By chance do you know if I could style the button like this? I will let them know as far as the portfolio goes.

 

Thanks Tuanphan!

I don't see button. Can you take a screenshot?

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
  • 2 weeks later...
15 hours ago, TheVibe said:

yes! 😁

You can use this code to Website > Website Tools > Custom CSS. Replace Pixabay with your new image url.

a.button.gallery-pinterest {
    background-image: url(https://cdn.pixabay.com/photo/2022/01/07/01/21/girl-6920625_1280.jpg) !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    color: transparent !important;
}

 

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.