Viewing 23 posts - 1 through 23 (of 23 total)
  • Author
    Posts
  • #1460615

    Hi,
    i’m trying to an a blue row above an image with a line of text into (please see screenshot).
    Could not find a way.
    How can i do that?

    Kind regards
    Jak

    #1460618

    what is your starting point. An Image Alb Element from Enfold – or is it a placed media file inside a Text-Block Alb?

    #1460619

    Can i send you my domain to you emaiI (for privacy reasons)?

    #1460620

    see here a solution for image alb element that uses the caption (your text) – with overlay color your desired color (blue) and overlay opacity 1!
    css code on that example page:
    https://webers-testseite.de/blue-bar-above-image/

    i just look now what happens to that code if a link is on the image (external or lightbox) …

    #1460621

    Hi Guenni,
    i just added the code to quick css and to the image (inEntwickler Einstellungen) blue-info.
    But it does not give the effect.
    For the image i used “Image” from media settings.

    just send you my url with email…

    #1460623

    you had entered that blue-info as ID not as class.

    Next on the image alb element there is on content tab at the bottom a Caption input field. There comes your text in.
    Next on Styling you can go to image capiton : choose your wanted look – but on caption overlay opacity choose : 1

    so you can use it on every image alb with that custom-class. And you can enter your text by alb options and the background too.

    #1460624

    I can’t find the field to add? What is an image alb element?

    #1460629

    alb : advanced layout builder element – or avia layout builder element.

    open your image element – on content : at the bottom – choose to show a caption: “Display a caption overlay?” : enter your text there.

    if you entered a text there – than you will have on styling tab an options dialog with some settings for that caption.

    with overlay color your desired color (blue) and overlay opacity 1!

    #1460632

    This is really good!
    Thank your very much Guenni!!!

    Ho can i change it, that the background colour is only: background-color: #c8ebf8;
    And there is a thin line above and below the blue line (like on the screenshot: https://ibb.co/10TCGZK )?

    kind regards Jak

    #1460642

    Hi,
    Try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:

    .blue-info .av-image-caption-overlay {
        border-top: 0px;
        border-bottom: 0px;
    }
    #top .blue-info .avia-image-overlay-wrap .av-caption-image-overlay-bg {
      opacity: 1 !important;
      background-color: #c8ebf8 !important;
    }

    After applying the css, please clear your browser cache and check.

    Best regards,
    Mike

    #1460643
    This reply has been marked as private.
    #1460647

    Hi,
    Try adding this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:

    .avia-image-container.blue-info .av-image-caption-overlay-center {
        color: #222222;
    }

    Best regards,
    Mike

    #1460650

    on the alb itself you got on styling options all you need : even the font color – and font-size.

    The trick is that you can now use this class with different settings (backgrounds, font sizes and colours).

    By the way – you are planning to use a chineese translation ? I do not really know why you are using such a performance hungry font for your page. I would at least set the English sentences in a similar Latin font.

    For example from your page the comparison of zenkakugothicnew to (on Google Fonts) Hanken Grotesk:

    #1460658

    Hi Mike,
    that works!

    Hi Guenni, that is a good idea. I will give the font a try.

    Thanks a lot to you both.

    kind regards
    Jak

    #1460659

    One more thing. I’m trying to make the text bolder, but when i add
    font-weight: bolder

    it does not take an effect?

    #1460671

    Hi,
    I assume you mean the “SELF CONTAINED” at the top of the page, you can use this css:

    #top #wrap_all .all_colors h1 {
    	font-weight: bold;
    }

    but your font doesn’t seem to support “bolder”

    Best regards,
    Mike

    #1460679

    Hi Mike,
    no, i ment the part below, which i would make the font bolder. Please see screenshot.
    Kind regards
    Jak

    #1460683

    Hi,
    I’m not sure what css you are using for “bolder” but I see you have this in place:

    .avia-image-container.blue-info .av-image-caption-overlay-center {
        color: #222222 !important;
        font-weight: bold !important;
    }

    this element is the same custom font that doesn’t seem to support “bolder”
    bold = 700 is the most you can use with the font ZenKakuGothicNew
    you could try installing the ZenKakuGothicNew-Black it supports 900 (bolder)

    Best regards,
    Mike

    #1460688

    Bold would be ok.

    Maybe i got something wrong. I took all the fonts from ZenKakuGothicNew.zip , took the woff and woff2 files, and zipped them. Then i uploaded the zip-file to enfold.
    Was this correct or do i need to upload the files one by one?

    #1460691

    Hi,
    You should upload each and then you will have a option for each.

    Best regards,
    Mike

    #1460694

    Ok, thank you for this information. I’ll do that.
    kind regards
    Jak

    #1460695

    Hi,
    Shall we close this thread then?

    Best regards,
    Mike

    #1460696

    Yes, thanks a lot Mike and Guenni!
    kind regards Jak

Viewing 23 posts - 1 through 23 (of 23 total)
  • The topic ‘How can i add a row with text above an image?’ is closed to new replies.