Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1426925

    Hi – I am using a Masonry Gallery and I need both a Caption underneath the image AND the Title Overlay on the image. Is there anyway to utilize both?

    Thanks for any direction you can give.
    Anna

    #1427049

    Hey annameis,
    The overlay is created with the same div that is the caption field below the images, so you can’t have both at the same time.
    But if you set the element to have the caption below the image and display the Title and Excerpt always, then you could move the title to the center of the image with a slight overlay and leave the caption at the bottom with no overlay with this css:

    #top #wrap_all .av-flex-size .av-masonry-entry.av-masonry-item-with-image .av-inner-masonry-content .av-masonry-entry-title.entry-title {
        position: absolute;
        transform: translate(12vw,-28vh);
        color: #fff;
    }
    #top #wrap_all .av-flex-size .av-masonry-entry.av-masonry-item-with-image .av-masonry-outerimage-container:before {
      content:"";
      display: block;
      height: 100%;
      position: absolute;
      visibility: visible !important; 
      top: 0;
      left: 0;
      width: 100%;
      background-color: rgba(0, 0, 0,.5)!important; 
    }

    The expected results:
    before mouse-over
    Enfold_Support_4083.jpeg
    mouse-over
    Enfold_Support_4085.jpeg
    Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
    After applying the css to your Quick CSS field, please clear your browser cache and check.

    Best regards,
    Mike

    #1427144

    Thanks so much Mike! I will give it a try!

    #1427158

    Hi,
    OK, please let us know if it works for you and we can close this thread.

    Best regards,
    Mike

    #1427160

    Hi Mike – I have inserted the code and cleared cache but did not get the desired result. Link below

    All CSS I’m using

    #footer .widget p {
    font-size: 15px !important;
    }

    #footer {
    padding-top: 80px;
    padding-bottom: 80px;
    margin: 0px;
    }

    @media only screen and (min-width: 990px) {
    #header_main .main_menu {
    position: relative;
    right: unset;
    display: flex;
    justify-content: center;
    }

    .av-masonry-entry-title {
    font-size:28px!important;
    }

    .av-masonry-entry-content.entry-content {
    font-size:16px!important;
    text-align: left;
    }

    #top #wrap_all .av-flex-size .av-masonry-entry.av-masonry-item-with-image .av-inner-masonry-content .av-masonry-entry-title.entry-title {
    position: absolute;
    transform: translate(12vw,-28vh);
    color: #fff;
    }
    #top #wrap_all .av-flex-size .av-masonry-entry.av-masonry-item-with-image .av-masonry-outerimage-container:before {
    content:””;
    display: block;
    height: 100%;
    position: absolute;
    visibility: visible !important;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0,.5)!important;
    }

    #1427167

    Hi,
    Thank you for the link to your site, for your last five items with no excerpt this css will center the title:

    #top #wrap_all .av-masonry-entry.av-masonry-item-with-image .av-inner-masonry-content .av-masonry-entry-title.entry-title {
        position: absolute;
        transform: translate(-1vw,-28vh);
        color: #fff;
        display: flex;
        justify-content: center;
        width: 100%;
    }
    #top #wrap_all .av-masonry-entry.av-masonry-item-with-image .av-masonry-outerimage-container:before {
      content:"";
      display: block;
      height: 100%;
      position: absolute;
      visibility: visible !important; 
      top: 0;
      left: 0;
      width: 100%;
      background-color: rgba(0, 0, 0,.5)!important; 
    }

    But I know the you plan to have a excerpt, so based on the excerpt length of the first item, which is about half of the item’s height, this css would be what I recommend.

    #top #wrap_all .av-masonry-entry.av-masonry-item-with-image .av-inner-masonry-content .av-masonry-entry-title.entry-title {
        position: absolute;
        transform: translate(-1vw,-16vh);
        color: #fff;
        display: flex;
        justify-content: center;
        width: 100%;
    }
    #top #wrap_all .av-masonry-entry.av-masonry-item-with-image .av-masonry-outerimage-container:before {
      content:"";
      display: block;
      height: 100%;
      position: absolute;
      visibility: visible !important; 
      top: 0;
      left: 0;
      width: 100%;
      background-color: rgba(0, 0, 0,.5)!important; 
    }

    as you add more excerpts to the other items try adjusting the negative sixteen of this code: transform: translate(-1vw,-16vh); to find the placement that you want. It would be better if your excerpts were all about the same length, because we need to use absolute position for the title.

    Best regards,
    Mike

    #1427172

    Worked perfectly! Thanks so much.

    #1427177

    Hi,
    Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Masonry Gallery Caption’ is closed to new replies.