Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

How to add colour overlay on clickthrough links


danielhaydenh

Question

Site URL: https://dhaydendesign.com/portfolio-test

I'm trying to add custom css to my site to allow the captions to show on hover over, however when the image has a clickthrough link attached to it the code isn't behaving.

Can someone advise me please.

Below is the code i have used.

.gallery-caption-grid-masonry {
  opacity: 0;
  z-index: -1;
  transition: all .2s;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  text-align: center;
  color: #fff;
  height: 100%;
  padding: 0;
}
  
.gallery-masonry-item:not(.has-clickthrough) .gallery-caption-grid-masonry:before {
  background-color: #0c3448;
  content: "";
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  opacity: .8;
  transition: all .2s;
}

.gallery-masonry-item.has-clickthrough:hover .gallery-caption-grid-masonry {
  z-index: 0;
  opacity: 1;
  height: auto;
}

.gallery-masonry-item:not(.has-clickthrough):hover .gallery-caption-grid-masonry {
  z-index: 0;
  opacity: .9;
}

.gallery-masonry-item:hover .gallery-caption-grid-masonry:before {
  opacity: 1;
  transition: all .3s;
}

.gallery-caption-grid-masonry .gallery-caption-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-caption-grid-masonry p.gallery-caption-content {
  z-index: 1000;
  font-size: 1.9rem;
}

Link to comment
  • Answers 5
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Posted Images

5 answers to this question

Recommended Posts

  • 0

Hi. Do you still need help on this?

Email me if you have need any help (free, of course.). Answer within 24 hours.

How to: Setup password & share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care - Learn CSS - Custom Popup - Testimonial Slider

I'm Tuan, blogger/owner of a free library for children in Vietnam. Helping the community is a hobby. Contact me via email.

Link to comment
  • 0

Hey guys! Thought I'd post on this thread rather than create a new one.

 I've added some css to this site to get the gallery displaying differently. I'd like to change the text link colour but can't work out how to change it. Can you help? TIA 🙂

 

//Gallery title font overlay//
.sqs-gallery-block-slideshow .meta .meta-title {
  font-family: "Playfair Display";
font-style: italic;
  letter-spacing: 0.05em;
  line-height: 26px;
}



//Gallery Slideshow Fonts & Colours//
.sqs-gallery-block-slideshow .meta .meta-title {
font-family: Playfair Display;
  font-style: italic;
  letter-spacing: 0.05em;
font-size: 24px;
color: #273e38;
}

.sqs-gallery-block-slideshow .meta .meta-description p {
 font-family: Source Sans Pro;
 font-style: normal;
 font-size: 15px;
  line-height: 33px;
  padding-top: 20px;
  padding-left: 50px;
  padding-right: 50px;
 color: #273e38;
 opacity: 1;
}

 

https://echidna-cymbals-2kjy.squarespace.com/1078591532_Screenshot2021-02-24at14_49_13.thumb.png.0f3d6cdb52fc74252ec9443e3164f273.png

p/w coaching

Link to comment
  • 0
On 2/24/2021 at 10:06 PM, MakingWaves said:

Hey guys! Thought I'd post on this thread rather than create a new one.

 I've added some css to this site to get the gallery displaying differently. I'd like to change the text link colour but can't work out how to change it. Can you help? TIA 🙂

 


//Gallery title font overlay//
.sqs-gallery-block-slideshow .meta .meta-title {
  font-family: "Playfair Display";
font-style: italic;
  letter-spacing: 0.05em;
  line-height: 26px;
}



//Gallery Slideshow Fonts & Colours//
.sqs-gallery-block-slideshow .meta .meta-title {
font-family: Playfair Display;
  font-style: italic;
  letter-spacing: 0.05em;
font-size: 24px;
color: #273e38;
}

.sqs-gallery-block-slideshow .meta .meta-description p {
 font-family: Source Sans Pro;
 font-style: normal;
 font-size: 15px;
  line-height: 33px;
  padding-top: 20px;
  padding-left: 50px;
  padding-right: 50px;
 color: #273e38;
 opacity: 1;
}

 

https://echidna-cymbals-2kjy.squarespace.com/1078591532_Screenshot2021-02-24at14_49_13.thumb.png.0f3d6cdb52fc74252ec9443e3164f273.png

p/w coaching

Did you remove it? I don't see it on homepage

Email me if you have need any help (free, of course.). Answer within 24 hours.

How to: Setup password & share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care - Learn CSS - Custom Popup - Testimonial Slider

I'm Tuan, blogger/owner of a free library for children in Vietnam. Helping the community is a hobby. Contact me via email.

Link to comment
  • 0
On 3/1/2021 at 7:36 PM, MakingWaves said:

Yes, the client's just removed them as she wanted to go live. Are you able to help without them on there??

You can duplicate site, add there & share url.

Email me if you have need any help (free, of course.). Answer within 24 hours.

How to: Setup password & share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care - Learn CSS - Custom Popup - Testimonial Slider

I'm Tuan, blogger/owner of a free library for children in Vietnam. Helping the community is a hobby. Contact me via email.

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...