Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1407336

    I’m wondering if Enfold allows me to add an overlaid image caption that has a solid background color, but is about 20% offside of the image.
    An example is located here: https://healthy.kaiserpermanente.org/southern-california/front-door (note. you may need to turn on your VPN for California area if page does not render).
    The image I am focusing on is the guy against the tree with the caption “mental health…”

    Thanks!

    #1407360

    Hey laptophobo,
    Thank you for the link to your demo site, perhaps using a text element and a image element in the same column with Grid CSS would be a good solution:
    Enfold_Support_2063.jpeg
    Try adding the custom class grid-column to a full width column, and add the custom class grid-image-right to the image element inside the column. Then add your text element inside the column but we won’t use a custom class for it.
    Add this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:

    @media only screen and (min-width: 768px) { 
    .grid-column {
        display: grid;
        grid-template-columns: repeat(12,1fr);
        grid-template-rows: auto;
        grid-column-gap: 1pc;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
    }
    .grid-image-right {
    	display: grid;
        grid-column-start: 4;
        grid-column-end: span 9;
        grid-row: 1;
    }
    .grid-column .av_textblock_section {
    	display: grid;
        grid-column-start: 1;
        grid-column-end: span 5;
        grid-row: 1;
        padding: 8%;
        color: #000;
        background-color: #eee;
        z-index: 1;
    }
    }

    and adjust the colors to suit.
    Now below 767px, for mobile the image and text will be stacked:
    Enfold_Support_2065.jpeg
    and for tablet and above the text offset will be consistent:
    Enfold_Support_2067.jpeg
    I tried to do this with the image caption but it didn’t work well with the image element structure and the caption field doesn’t allow HTML and buttons easily like the text element so this may be more useful.

    Best regards,
    Mike

    #1407359

    Hey laptophobo,
    Thank you for the link to your demo site, perhaps using a text element and a image element in the same column with Grid CSS would be a good solution:
    Enfold_Support_2063.jpeg
    Try adding the custom class grid-column to a full width column, and add the custom class grid-image-right to the image element inside the column. Then add your text element inside the column but we won’t use a custom class for it.
    Add this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:

    @media only screen and (min-width: 768px) { 
    .grid-column {
        display: grid;
        grid-template-columns: repeat(12,1fr);
        grid-template-rows: auto;
        grid-column-gap: 1pc;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
    }
    .grid-image-right {
    	display: grid;
        grid-column-start: 4;
        grid-column-end: span 9;
        grid-row: 1;
    }
    .grid-column .av_textblock_section {
    	display: grid;
        grid-column-start: 1;
        grid-column-end: span 5;
        grid-row: 1;
        padding: 8%;
        color: #000;
        background-color: #eee;
        z-index: 1;
    }
    }

    and adjust the colors to suit.
    Now below 767px, for mobile the image and text will be stacked:
    Enfold_Support_2065.jpeg
    and for tablet and above the text offset will be consistent:
    Enfold_Support_2067.jpeg
    I tried to do this with the image caption but it didn’t work well with the image element structure and the caption field doesn’t allow HTML and buttons easily like the text element so this may be more useful.

    Best regards,
    Mike

    #1407417

    thank you Mike!
    After sending off the topic request I came upon a similar solution using grid. But I like the way yours looks too, so I’ll give it a gry and see how it turns out.

    Richard

    #1407433

    Hi,
    Glad to hear, let us know if this helped and we will close this thread.

    Best regards,
    Mike

    #1407437

    I just finished replacing your version of the caption overlay with mine. Much more stable and looks great. (I swapped out the text-element with a magazine element. Still looks great.) :-)

    You can close this thread now.

    #1407469

    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 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Applying an aside caption’ is closed to new replies.