Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #138660

    dav9000
    Participant

    Hi,
    How do I change the opacity on a background image set on a content-band.
    I left visual composer and checked in the text editor and it has bg_image=”79″ in the content-band shortcode, so there is no where to add a style for opacity on the image..

    thank you.

    #138802

    Paul R
    Moderator

    Hi,

    Thanks for writing in!

    You can do something like this.

    
    #x-content-band-1 {
       background: rgba(0, 0, 0, 0.5); 
    }
    

    The code will set the background of content band 1 to black with 50% opacity.
    Please change it with the color you want.

    You can use this link to generate the rgba for your color.

    http://html-generator.weebly.com/css-rgba-color-generator.html

    You can add it under Custom > CSS in the Customizer.

    Hope that helps

    #139513

    dav9000
    Participant

    Hi,
    I have a background image in the content band.. so it is the opacity of the background image I need to change….
    Also it is for particular pages not all pages…

    thanks

    #139628

    Cousett
    Member

    Can you provide us with the specific pages you want to change and your URL in general and we will be happy to help.

    #139688

    Fiona A
    Participant

    I was just about to ask this question.

    Isn’t there just a general code we could put in the style box?

    #139832

    Kosher K
    Member

    Hi Fiona,

    You can try adding this code in style box

    background: rgba(0, 0, 0, 0.5); or background-color: rgba(0, 0, 0, 0.5);

    Cheers

    #140144

    dav9000
    Participant

    Hi,
    The code you gave for Fiona does not work for a background image
    ,is it possible to change the opacity of a background image in a content band?

    thanks

    #140288

    Cousett
    Member

    You can add opacity: 0.5; as a style in VC or add it to the CSS of the content band div.

    #140307

    Fiona A
    Participant

    Perfect – cheers!

    #140346

    dav9000
    Participant

    Hello,
    using opacity 0.5; in the style for the content-band changes the opacity for everything in the band, not just the background image..

    #140455

    Nabeel A
    Moderator

    Hi again,

    Can you please provide the URL of your website so we can check the opacity issue?

    #140678

    dav9000
    Participant
    This reply has been marked as private.
    #140898

    Kosher K
    Member

    Hi There,

    Sorry for the confusion, But you can’t apply opacity to a background image,

    You either need to edit your image opacity using photoshop or add the image to that content band this way below,

    assuming you wanted to add the image on #x-content-band-1

    #x-content-band-1:before {
     content: url(your-image-url-here.jpg);
     position: absolute; 
     width: 100%;
     height: 100%;
     z-index: 0 /*try changing this to -1*/;
     opacity: .5;
    }

    Hope that helps,

    Have a great day

    #784868

    Mocombeg
    Participant

    I’ve tried everything that you’ve suggested to the other user and I can’t get my opacity to change without changing the opacity in all of these items can you help me?

    #784891

    Nico
    Moderator

    Hi There,

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password
    – FTP credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thanks.