Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #521289

    I used the code below to make it so that the image caption always displays on my mobile devices and it works great. What I would like to do now is modify this code to target only certain sections by using a custom css class of image-overlay. Can you help me modify this code to achieve that please? Not sure where I would add in the custom css class. Thanks!

    @media only screen and (max-width: 989px) {
    .av-overlay-on-hover .av-image-caption-overlay {
      opacity: 1;
      filter: alpha(opacity=100);
    }}
    
    @media only screen and (max-width: 989px) {
    .av-caption-image-overlay-bg {
        background-color: rgba(0,0,0,0.2) !important;
    }
    #521292

    Hi djshortkut!

    It sounds like the same could be achieved by using a page-id so it only affects specific pages.

    But since you mentioned sections, I assume you would like to apply a custom css class to individual portfolio sections.

    In that case, you can wrap your portfolio grid shortcode in a div calling for the image-overlay class, using the code block element.

    Cheers!
    Dake

    #521301

    Ok got it working, thanks for the help! You can close this thread.

    #521310

    Hey!

    You’re welcome, glad we could help :)

    Please let us know if you ever need any help in the future.

    Cheers!
    Dake

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Image Caption on Mobile Device’ is closed to new replies.