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

Image hover altered with code, and now won't clickthrough


maggierae

Question

Site URL: https://www.maggiebrz.design/work

Hi all,

 

1. I altered the hover state on my images to span the full image instead of just appear as a bar along the bottom. However, now it won't clickthrough! Anyone have tips? This is the code I'm using (i'm a rookie).

 

2.  It would be super cool to change the hover color, but that's a lot of asks...

 

.sqs-block-image .image-block-outer-wrapper:not(.image-block-v2).layout-caption-overlay .image-caption-wrapper p, .sqs-block-image .image-block-outer-wrapper:not(.image-block-v2).layout-caption-overlay-hover .image-caption-wrapper p {
  position: relative;
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
    color: white;
    font-weight: 800;
      font-size: 1.5rem;
  text-align:center;
}

.sqs-block-image .image-block-outer-wrapper:not(.image-block-v2).layout-caption-overlay .image-caption-wrapper, .sqs-block-image .image-block-outer-wrapper:not(.image-block-v2).layout-caption-overlay-hover .image-caption-wrapper {
    position: absolute;
    top: 0px;
    padding: 20px;
}

.sqs-block-image .image-block-outer-wrapper:not(.image-block-v2).layout-caption-overlay-hover:hover .image-caption-wrapper, .sqs-block-image .image-block-outer-wrapper:not(.image-block-v2).layout-caption-overlay-hover :focus+.image-caption-wrapper {
    max-height: 100%;
    opacity: 1;
    visibility: visible;
}

.sqs-block-image .image-block-outer-wrapper:not(.image-block-v2).layout-caption-overlay .image-caption-wrapper, .sqs-block-image .image-block-outer-wrapper:not(.image-block-v2).layout-caption-overlay-hover .image-caption-wrapper {
    background: #d78033;
    opacity:20%;
}

 

Thanks!

Maggie

Edited by maggierae
added tags
Link to post
  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

1 answer to this question

Recommended Posts

  • 0

Add to Work Page Settings > Advanced > Header

<style>
/* Enable click */
figcaption {
    pointer-events: none;
}
</style>

 

You can send your question to my email to get faster answer. / How to Setup Password & Share URL 

-- I'm Tuan, work for a non-profit project (build free libraries). I check the forum once or twice a day to help out the community. If you don't see me answering your question, you can send it to the email above. 

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...