-
AuthorPosts
-
November 4, 2014 at 10:09 pm #138660
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.
November 5, 2014 at 5:39 am #138802Hi,
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
November 6, 2014 at 5:41 am #139513Hi,
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
November 6, 2014 at 8:47 am #139628Can you provide us with the specific pages you want to change and your URL in general and we will be happy to help.
November 6, 2014 at 10:34 am #139688I was just about to ask this question.
Isn’t there just a general code we could put in the style box?
November 6, 2014 at 1:50 pm #139832Hi Fiona,
You can try adding this code in style box
background: rgba(0, 0, 0, 0.5);
orbackground-color: rgba(0, 0, 0, 0.5);
Cheers
November 7, 2014 at 3:27 am #140144Hi,
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
November 7, 2014 at 9:26 am #140288You can add
opacity: 0.5;
as a style in VC or add it to the CSS of the content band div.November 7, 2014 at 9:56 am #140307Perfect – cheers!
November 7, 2014 at 11:39 am #140346Hello,
using opacity 0.5; in the style for the content-band changes the opacity for everything in the band, not just the background image..November 7, 2014 at 2:35 pm #140455Hi again,
Can you please provide the URL of your website so we can check the opacity issue?
November 7, 2014 at 10:56 pm #140678This reply has been marked as private.November 8, 2014 at 2:49 pm #140898Hi 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
February 8, 2016 at 12:08 am #784868I’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?
February 8, 2016 at 12:34 am #784891Hi 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 credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Thanks.
-
AuthorPosts