-
AuthorPosts
-
February 28, 2018 at 10:50 am #918926
Hi!
I want to create a site with a image in the background over the whole screen like here terra-messflug.at
Is it possible to solve this with a child theme?Thanks for helping.
February 28, 2018 at 11:05 am #918937well – if it is with parent theme ok – it will be ok with child-theme too.
You can achieve this only on page editor and a few css settingsthe point is if you like to have footer and socket ?
you can see here a test-page. https://webers-testseite.de/fullbackground/
with one color-section on top with a 100% height
transparent-header setting (style the header-bg as you like)
( because there is no footer nor socket: you can have background-image with scroll too – or fixed)Content can be everything Enfold offers on alb elements
you can have the same with background-video – hope it works for you ( on my end – yes it works)
- This reply was modified 6 years, 9 months ago by Guenni007.
February 28, 2018 at 11:27 am #918957Hi Guenni007, thanks for your prompt reply.
Footer and socket are not necessary. I don´t have any experiences with wordpress and at the theme options i can choose between boxed or fullscreen layout, but i need the menu over the full screen and a fullscreen background image and the content should be small like on the page i mentioned before. http://terra-messflug.at
Thanks a lot
- This reply was modified 6 years, 9 months ago by M_AVT.
February 28, 2018 at 11:52 am #918978you see the link to the test-page: https://webers-testseite.de/fullbackground/
February 28, 2018 at 12:20 pm #918987Hi! Thanks for your help.
February 28, 2018 at 12:51 pm #919006if this is what you like to have – i tell you how to reach it.
https://webers-testseite.de/naturleben/?page_id=211February 28, 2018 at 1:30 pm #919029Yes this is what i would like to have. How can i reach it?
ThanksFebruary 28, 2018 at 1:55 pm #919041each image here : click to enlarge
1) use the stretched layout on enfold.
2) logo and navigation on top
3) header: logo left menu under it
3a) Footer: dont display footer nor socket
4) header-behavior : i have taken: Let logo and menu position adapt to browser window and sticky header
5) goto Layout Builder and mark : “Show element options for developers”6) now we had to obtain your very small content
6a) for each page you have to have that layout here:
6b) and the grid gets this:
7) now the css for quick css.responsive body { background-repeat: no-repeat; background-size: cover; background-color: transparent; height: 100vh !important } .responsive body.page-id-211 { background-image: url(path-to-your-image); } #header { width: calc(100% - 60px) !important; background: transparent; top: 30px; margin: 0 30px; } .html_stretched #wrap_all { background-color: transparent !important; } #main { background-color: transparent !important; } .main_color, .main_color .site-background { background-color: transparent; } .header_bg { opacity: 0.8 !important; filter: alpha(opacity=80) !important; } .notfullsize .flex_cell.with-background { background-color: rgba(255,255,255,0.9) !important; } #av-layout-grid-1 { margin-bottom: 100px !important; } @media only screen and (max-width: 768px) { .responsive #top #wrap_all #header { margin: 0 30px !important; } }
you see here on that css that you can now have for each page a different background-image
.responsive body.page-id-211 { background-image: url(path-to-your-image); }
to have now not a fullwidth grid-row insert this to your functions.php of your child-theme:
function grid_layout_notfull(){ ?> <script> (function($){ $('.av-layout-grid-container.grid-notfull' ).wrap( '<div class="main_color notfullsize"></div>'); $('.notfullsize').css({"clear": "both", "width": "100%" , "float": "left" , "position": "static" , "min-height": "100px" }); $('.grid-notfull').css({"max-width": "1310px", "margin": "0 auto" , "padding": "0 30px"}); })(jQuery); </script> <?php } add_action('wp_footer', 'grid_layout_notfull');
if you need further assistance – your welcome
if you have done it send me a link to fine tune itFebruary 28, 2018 at 1:59 pm #919042by the way – : this works much better in responsive case than your example page : http://terra-messflug.at/
pull your browser window smaller and see.and you can play with the width of the grid-row on different pages.
1/3 2/3 etc pp. but all have to have that custom class mentioned aboveFebruary 28, 2018 at 7:54 pm #919236And – if you don’t like to determin for each page a background-image – and you can live with a slider – there will be with the same setup a plugin which handels the background.
See testpage – on every refresh there will be a new background ( the other pages are not adopted to that layout)March 1, 2018 at 6:28 am #919398Hi,
Thanks for helping out @guenni007, did you have any luck with the suggestions above @M_AVT?
Best regards,
RikardMarch 1, 2018 at 9:24 am #919490Hi Guenni007!
Thank you very much. You helped me a lot, now it works fine.
Sorry, but i can not send you a link because i have installed wordpress on a local server.Thanks and best regards
M_AVTMarch 1, 2018 at 2:14 pm #919641Hi M_AVT,
Great, glad you got it working and thanks for the feedback. Please let us know if you should need any further help on the topic or if we can close it.
Best regards,
RikardMarch 2, 2018 at 9:17 am #920171Hi!
Do i need for every page a single body.page-id?
The content area, i made it with 4/5 and there i can put different contents like images or textblock or what ever. The content area is div.flex_cell and the content is in div.flex_column and the problem is that this is smaller than the content area.Thanks and best regards
M_AVT- This reply was modified 6 years, 9 months ago by M_AVT.
March 2, 2018 at 12:24 pm #920281you don’t need it for every page – but i guess that was the aim – and your test page has the same.
can you make a screenshot of your layout ?
The flex-grid has the advantage. that you can put in every alb you like to have – even columns ! and on responsive case the empty grids are automatically gone to display none.
If you can live with image shuffel – go and get for example : https://de.wordpress.org/plugins/responsive-full-width-background-slider/
this is an older plugin – but it works as you can see it on testpage. If you don’t set it up as autoplay but with shuffel – there will be each time you open a page a different background.March 2, 2018 at 12:48 pm #920299if you like to have the possibility to change the content from left to right cell.
you have to give to the cell a class f.e. with-backgroundthan change this in your css (above i did it allready)
.notfullsize .flex_cell.avia-builder-el-last { background-color: rgba(255,255,255,0.9) !important; }
to :
.notfullsize .flex_cell.with-background { background-color: rgba(255,255,255,0.9) !important; }
see page: https://webers-testseite.de/naturleben/?page_id=211
with 2/5 3/5
and on bottom the other way roundMarch 3, 2018 at 6:00 am #920635March 5, 2018 at 9:27 am #921358Hi!
Sorry i havn´t explained it clearly. I need a different background image for “Home”, “Contact”, “Gallery” and so on.
And what i mean with that the div.flex_column is smaller then the content area div.flex_cell you can see at the screenshot here in the red circle. At the mobile view the space around the text is correct. https://imgur.com/a/zIoOuThanks for helping
- This reply was modified 6 years, 9 months ago by M_AVT.
March 5, 2018 at 10:17 am #921375if you like to have allways the same background-image each page
yes you have to find the page-id and set it as: (here is id: 211).responsive body.page-id-211 { background-image: url(path-to-your-image); }
from a screenshot it is hard to say what it is
edit: by the way if you have a grid like
1/2 1/2 and want to have on totally a 1/2 page filled – you have to put in on the right grid-cell a 1/1 container ;)March 5, 2018 at 1:04 pm #921458Sorry but that does not help.
But i have found the problem. The width of div .av_four_fifth was set to 78.8%.Best regards
March 6, 2018 at 4:16 am #922003Hi,
Great! Glad that you found the problem. Did it fix the issue completely?
Best regards,
IsmaelMarch 6, 2018 at 9:06 am #922107Hi Ismael!
Yes everything is okay. You can close this topic.
Thanks for helping and best regards
- This reply was modified 6 years, 9 months ago by M_AVT.
March 6, 2018 at 12:30 pm #922202Hi M_AVT,
Glad you got it working for you! :)
If you need further assistance please let us know.
Best regards,
VictoriaMarch 22, 2018 at 4:59 pm #931449This reply has been marked as private.March 24, 2018 at 3:11 am #932196Hi,
@acrologic: Have you tried using the color section? You can set the minimum height to 100% of the viewport height and apply a fullscreen background image. Please create a new thread or ticket if you need further help.Best regards,
IsmaelAugust 18, 2018 at 10:58 pm #998807Hi,
I’m reviewing the steps for a fullscreen background image from Guenni007. However, I’m confused with the following:
“6) now we had to obtain your very small content
6a) for each page you have to have that layout here:6b) and the grid gets this:”
It looks like something has been removed. Can anyone tell me what is supposed to be there? I only have two different backgrounds for the pages on this site. Thanks
August 22, 2018 at 8:01 am #1000149Hi,
Apparently, there is more than one approach to achieve the fixed background effect. I’ve not tried the previous method but if you like to try another easy way please follow the below steps.
1. Enable developer options from Enfold theme options > Layout Builder > Show element options for developers
2. Open a new page and copy the shortcode in this link https://pastebin.com/raw/yF7ZPjbA
3. Disable sidebar from the page layout options.
4. Add a background image to the Color section element.
5. Lastly, copy the below CSS to your site./* Column background color */ .column-bg { background: #ededed; padding: 90px 70px; margin-bottom: 100px; }
To create multiple pages, create a template in the advanced layout builder :)
Best regards,
Vinay -
AuthorPosts
- You must be logged in to reply to this topic.