Tagged: color section, enfold
-
AuthorPosts
-
July 8, 2013 at 4:42 am #25875
I have searched the forum and was unable to find an answer to my color section question.
I have created a color section on one page of a website I am creating. Then on top I added 2/3 and 1/3 layout elements and then inserted text to the 2/3 layout.
Even though The Main content background set in the Theme Styling is #f8f8f8, the background colour of the 2/3 text div seems to be transparent, so the text sits directly on the image without the div background. Here is a link to the page that I’m talking about
http://youthreach.com.au/wp/programs/self-development/
Any suggestions on how I can make the background under the text to be #f8f8f8.
Many thanks
July 8, 2013 at 5:52 pm #128504Hi
The text block by itself doesn’t have an actual background so you need to add it in manually with css. Try adding the following CSS to your Quick CSS (located under the Styling Tab in the theme options) or the custom.css file in the css folder of your theme files:
#top.page-id-2429 #av_section_1 .avia_textblock {
background: #fff;
}What this will do is target that specific page by its ID (2429) and then the color sections’ textblock inside of it.
Regards,
Devin
July 8, 2013 at 10:10 pm #128505Hi Devin
That worked! Yay. I really appreciate your response. Just a couple of questions please.
What would I need to add to have a bit of a margin/padding on the left and right of the text.
Also what if I wanted it to apply it to all the pages.
Thanks very much.
Ivana
July 8, 2013 at 11:02 pm #128506Try this one:
#top .page-id-2429 #av_section_1 .avia_textblock {
background: rgba(55,55,55,0.6);
padding: 5px 10px;
color: #fff;
border-radius: 4px;
}
Just to show you the difference between #color and rgba(). ;)
If you like to apply it to all pages, try this selector: .page .avia_textblock
July 9, 2013 at 2:28 am #128507Awesome! Thank you formateins. The rgba didn’t seem to work, but the padding and border-radius did. Double yay!!!
I appreciate your help.
Ivana
July 9, 2013 at 5:06 am #128508The rgba value syntax seems to be correct. Try to change the color value (this converter will help you: http://hex2rgba.devoth.com/ ) or try to add a !important tag to it:
#top .page-id-2429 #av_section_1 .avia_textblock {
background: rgba(55,55,55,0.6) !important;
}July 9, 2013 at 7:46 am #128509Thank you Dude. Will give it a go!
July 9, 2013 at 7:49 am #128510One more question, if I may … if I want to make the text box a little transparent, how would I do that?
I really appreciate your help … it’s hard for this old dog to learn new tricks :)
Cheers
July 9, 2013 at 12:16 pm #128511RGBA (and HSL) color definitions won’t make it in IE and Opera. You should have a look at progressive enhancements to get things going. To get it straight: IE likes to have it’s very own solution for this.
#top .page-id-2429 #av_section_1 .avia_textblock {
background: rgba(55,55,55,0.6);
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99FF0080,endColorstr=#99FF0080);
zoom:1;
padding: 5px 10px;
color: #fff;
border-radius: 4px;
}
The Microsoft gradient takes a start and end color. If you look a lil bit closer to the hex value, you’ll notice the two additional digits in front. This is the alpha channel to have it transparent. So if you define 0.6 in RGBA, the digits should be 60. Additionally, the zoom:1 prevents crappy font rendering (somehow).
July 10, 2013 at 1:01 am #128512I really appreciate your response formateins. What you have mentioned is a little beyond my technical knowledge at the moment, but I will give it a go and see how it looks on the website.
July 11, 2013 at 1:49 am #128513It may look a little daunting but if you break it down its pretty straightforward. The initial background gets set with the rgba value (a=transparency amount). Then the filter fixes it for IE.
Try and take it one line at a time and save during each change.
Regards,
Devin
September 9, 2013 at 8:25 pm #128514I have been using this code for my text blocks and it has been great. Now I also need to make the Contact form’s background white on pages that have a photo background. Would you be able to please provide me with code for that.
Thanks so much.
September 10, 2013 at 7:20 am #128515Hey,
Can you please give us a link to the page with the Contact form? A screenshot or mock-up of what you’re trying to do will help. :)
Regards,
Ismael
September 10, 2013 at 9:50 pm #128516Yes of course. Here is the page.
http://www.ceremonieswithstyle.com.au/wp/contact/
What I am trying to achieve is to have the same kind of background under the contact form as I do on the left handside under the text box.
Many thanks
Ivana
September 11, 2013 at 5:16 pm #128517Hi Ivana,
Try adding the following CSS to your Quick CSS (located under the Styling Tab in the theme options) or the custom.css file in the css folder of your theme files:
#top.page-id-481 .ajax_form.avia-builder-el-4 {
background: rgba(255, 255, 255, 0.9);
padding: 10px;
}And adjust as needed.
Regards,
Devin
September 13, 2013 at 3:32 am #128518Yaaay. That worked. Thank you very much Devin. Greatly appreciated.
Cheers
Ivana
-
AuthorPosts
- The topic ‘Color Section’ is closed to new replies.