-
AuthorPosts
-
March 29, 2014 at 9:09 am #244725
I would like to know how to achieve this common dotted overlay transparency on images in the color section.
I saw a post explaining how to do it by using targeting with the .caption_fullwidth class when using video in the easy slider, but it would be really nice if we could do the same in the color section – I would even settle for the easy slider with an image instead of video as an option.
Anyone have an idea how we can easily implement this?
This might even be a great option for the theme in later versions….developers?I also thought about using :after pseudo class but I cannot seem to get that to work…
https://kriesi.at/support/topic/dot-grid-overlay/
March 29, 2014 at 9:36 am #244731Hey AntonNovikov!
You add something like this for the color section:
.avia-section { content: url('IMAGE URL HERE'); }
This will cover the background image that you set for the color section.
Best regards,
IsmaelMarch 29, 2014 at 6:54 pm #244824This reply has been marked as private.March 30, 2014 at 12:11 pm #245069Hey!
You can try to apply a custom class to the color section (see: http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/ ) and then use this class to apply a semi-transparent background image. With css3 you can even apply several background images to the same element – see: http://www.css3.info/preview/multiple-backgrounds/
Best regards,
PeterMarch 31, 2014 at 6:04 am #245275Well,
The custom css field looked promising but alas I cannot get this to work. I think I have tried everything. The dotted overlay class has to be position:absolute; ( and that blows up everything ) as well there is a z-index: issue that I can’t seem to resolve — can’t spend any more time on it. I guess there is always a revslider ( it has build in style for it ) But seems like a lot of unnecessary code for just banners.
Has anyone else tried this and wants to help, please do? It would be a nice upgrade feature to the theme; this a very common client request.
As well I have tried to implement this on the Layer Slider WP – but the z-index issue is still a problem – the background image always covers the dotted overlay!
I should also note that, most implementations of the dotted overlay, position a styled div absolute – I don’t see how we can achieve the same results here…
Revslider: does this to achieve the result
<div class="tp-dottedoverlay threexthree"></div>
.tp-dottedoverlay.threexthree { background: url(../assets/gridtile_3x3.png); } .tp-dottedoverlay { background-repeat: repeat; width: 100%; height: 100%; position: absolute; top: 0px; left: 0px; z-index: 1; }
Thanks for your help, maybe there is work-around?
- This reply was modified 10 years, 7 months ago by AntonNovikov.
March 31, 2014 at 5:42 pm #245555Hi!
Thank you for correcting me. I’m sorry about that, I must have been tired when I posted that.
Anyway, you can apply a certain background overlay on a color section but first make sure that you added the theme support for custom css class. Edit functions.php, add this code right after line 16:
add_theme_support('avia_template_builder_custom_css');
This will give you the option to add a custom css class on any avia elements within the builder. So let’s get started, add a color section with the background image that you want then insert a text block inside the section. The overlay image will be added on the text block. Switch to the text/html editor mode then add this:
<img alt="" src="http://fc09.deviantart.net/fs71/f/2011/074/3/7/dotted_overlay_texture_by_nobren-d3bqt3w.png" />
Scroll a bit below to add a custom css class, we’re going to use section-overlay-background for example. After that save the options then publish the page. Add this on Quick CSS or custom.css to adjust the image overlay to full width and height covering the entire color section background:
.section-overlay-background { position: fixed; top: -50%; left: -50%; width: 200%; height: 200%; z-index: 0; } .section-overlay-background img { position: absolute; top: 0; left: 0; right: 0; bottom: 0; margin: auto; min-width: 50%; min-height: 50%; }
Reference link is here, look for technique number 2: http://css-tricks.com/perfect-full-page-background-image/
Cheers!
IsmaelMarch 31, 2014 at 5:53 pm #245569Hey!
I noticed that it might cover some of the sections so you might need to increase the z-index of other color sections or elements if you have any.
Cheers!
IsmaelMarch 31, 2014 at 6:52 pm #245625Ok, I tried this, and the z-index is a big issue – I use color sections all over my pages as section break banners.
I tried z-index:0, 1 .2 .3.4 for this new class. I also tried putting my section banner(s) color section on the top with z-index:999; But with everything, the layout layers just will not work. The class color section either gets pushed right to the back and disappears completely or sits on top and destroys the layout.
Anyone else tried Ismael’s suggestion, and got it to work?
Also anyone sorted out the z-index issues when using a dotted overlay on the Layer Slider WP – I would love to hear how it can be done.
Cheers,
March 31, 2014 at 7:15 pm #245650Hi!
I know this is not practical but since you added the custom css class, you can try this. Edit all the color sections except for the section with the background overlay. Add a custom css class called section-top-index to all of them. Add this on Quick CSS:
.section-top-index { position: relative; z-index: 100; }
This should move the layer position of all the section on top of the color section with the background overlay.
Best regards,
IsmaelMarch 31, 2014 at 7:45 pm #245672Ismael,
That was my thinking as well put all other color sections to the front – which works – but the color section with the overlay just shoots to the back and it is no longer part of the layout – it is actually sitting behind everything even the header. When you have a layer slider at the top it places everything including the top dotted layer right to the back at index:0 which is not ideal. As well, the section break you are trying to create with the dotted overlay is no longer part of the layout flow.April 4, 2014 at 7:34 pm #247602Hi!
You might need to have a freelance developer write up some custom css rules that will work for your needs specifically to get the exact look you are going for if Ismaels suggestions aren’t working for you. We are pretty good with css but someone able to focus on it first hand might have better luck with a custom solution.
Cheers!
Devin -
AuthorPosts
- You must be logged in to reply to this topic.