Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #562452

    Hi

    I would like to add a custom background to text in a special heading on some pages (not all though). Ideally I thought I would set this for one heading style and just use that when I need to. I want the background to be opaque as well.
    I have tried a couple of methods I found on there, including adding the css below and selecting H5 heading, but no joy. Example page attached.. its the heading in the colour section at the top I want to change.

    body .av-special-heading .av-special-heading-tag h5 {background-color: #61728e;}

    #562538

    Hi colinredbond!

    I checked your link but I didn’t see any H5 elements. Add them in and then do this, http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/, to give them a custom class such as “customH5s”, and then we’ll give you some CSS to use.

    Best regards,
    Elliott

    #562686

    Hi

    Sorry I was playing with the page and I removed the title temporarily. I have added a link to another one (the heading at the top is using H5). I have enabled the custom css field. However, given a choice I would prefer to set the behaviour of the heading as a default, rather than have to edit every special heading object, as I have used these quite a lot.
    Please let me know the best approach and either way I am interested in understanding how to use the custom css class as this will be useful for other things.

    Thanks

    Colin

    #562902

    Hi Colin,

    You can set the styling for the h5 element under Enfold–>Advanced Styling. If you need more options than are provided then you can use something like this in Quick CSS:

    h5 {
    your styling here
    }

    Best regards,
    Rikard

    • This reply was modified 9 years ago by Rikard.
    #563033

    Can you advise on the css to set the opacity for the background of the heading please? Also, if I set background in advanced styling, it makes the background full width of the window, where I only want the background to be as wide as the text.

    #563241

    Hey!

    You can achieve this by going to

    Enfold options > header > Header layout
    Enfold options > header > Transparency Options

    Or you can use the below css the amount of transparency is controlled by .5 in rgba(27,43,26, .5) you can increase it or dcrrease it by changing the value.

    Please use the css in Enfold > General Styling > Quick CSS

    .header_color .header_bg {
        background-color: rgba(27,43,26, .5)!important;
        margin: 0 auto;
        left: 50%;
        transform: translateX(-50%);
    }
    

    Cheers!
    Vinay

    #563410

    I am not sure we are talking about the same thing. I do not want to change the opacity of my Header, i want to set the opacity of the heading style H5 and I also want the background to only be applied to the width of the text. If you look at the page below, I have changed the heading style H5 to display with a background in advanced styling, but it runs across the screen, not just behind the text. Also, there is no option to set opacity on that heading style.

    Please advise

    #563441

    Hi!

    Please check this out…

    #top #wrap_all .main_color h5, #top #wrap_all .alternate_color h5 {
        background-color: rgba(0,0,0,.4)!important;
        font-weight: bold;
        width: 500px;
        margin: 0 auto;
    }

    Regards,
    Vinay

    #564489

    Hi Vinay

    This kind of works, but then its causing some of the longer headings to wrap, which is not what I want.
    I wonder if you can advise how to do this using a custom css class, as thinking perhaps its best if I do it individually. I set a custom class in a special heading element, called “CustomHeading”. Can you advise on the css I need to just set the background to the text to opaque grey please? I tried modifying the above but not sure I am doing it right.

    Thanks

    #565453

    Hey!

    can you provide us a precise link where we can find the element you are talking about? also send us a screenshot, so we know exactly which element to inspect. Use imgur.com or dropbox.

    Best regards,
    Andy

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.