-
AuthorPosts
-
April 21, 2022 at 4:10 pm #1349037
Hello everyone,
I am currently trying to set a full html background image and set the content above it, using a transparent background.html.responsive body {
background-image: url(https://website.com/wp-content/uploads/background.png);
background-position: center center;
background-attachment: fixed;
background-repeat: no-repeat;
… etc…The ID “wrap_all” (as well as the header, containers etc.) now always has a background color and I want it to be transparent so the background (see above) is visible.
Can you help me?
Thanks!April 22, 2022 at 1:02 am #1349077Hey xela,
To have a background image and a transparent #wrap_all & #main please set your header to transparent and use this css, note that for this example it is set to apply on page-id-3304 because that is the test page linked below, you will want to set this to your page id.
The only element I have on the test page is a color section with a transparent background in the settings and a special heading, so depending on the elements you choose for your page you may need to add transparency to those elements..html_stretched body.page-id-3304 { background-image: url(//enfold/wp-content/uploads/2022/03/PhotoRag_Metallic_Mood-1-scaled.jpg); background-position: center center; background-attachment: fixed; background-repeat: no-repeat; } .html_stretched #top.page-id-3304 #wrap_all, .html_stretched #top.page-id-3304 #main { background-color: transparent; }
If you would like further help please link to your page so we can assist, there are too many elements to account for all of them blindly.
Best regards,
MikeApril 22, 2022 at 6:51 am #1349104Thank you for your answer.
I actually want this appearance to be all over the whole website, meaning all pages.
Maybe you can set this in the CSS for the whole site, and not only for some pages?Thanks again
April 22, 2022 at 12:44 pm #1349137Hi,
Thanks for the link to your site, I see that you already have the background image applied, so please try this css to make the foreground transparent:html,#main,.main_color,.footer_color,.socket_color,.header_color .header_bg { background-color: transparent; }
After applying the css, please clear your browser cache and check.
Best regards,
MikeApril 22, 2022 at 12:49 pm #1349138You are the best, thank you! :)
April 22, 2022 at 4:51 pm #1349161Hi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
Mike -
AuthorPosts
- The topic ‘Transparent background’ is closed to new replies.