Background image doesn't show with theme options or CSS

Hello,
I want to add a background images to pages with a container selected as in http://r73.dd4.myftpupload.com/region/. I have added one on Theme Options and on CSS with:
{background-image: url(http://r73.dd4.myftpupload.com/wp-content/uploads/qtq80-nsoIM6.jpeg) !important;}
for the page id and template. Nothing works. Please help.
Thanks,
LF

Hi LF,

Thank you for reaching out to us. To fix the issue please add the following code as well in the Theme Options > CSS:

.site, .x-site {
    background-color: transparent !important;
}

Don’t forget to clear all caches including your browser’s cache after adding the code. Let us know how this goes!

Hello,
Thanks for getting back to me. I’m sorry, I guess I wasn’t clear. I want the background image to show on pages that have a container but not to show on pages that are selected as having no container. Can you help?
Thanks,
LF

Hi There,

Please try with this custom CSS instead:

body.page-template-template-blank-3 #top {
    background-image: url(http://r73.dd4.myftpupload.com/wp-content/uploads/qtq80-nsoIM6.jpeg) !important;
}

If you would like to learn CSS, I am sharing few resources that you take a look to get started with CSS and an interesting tool that you can use to speed up the development process.

I recommend you to watch following video that will help you to get started with CSS.

https://www.youtube.com/watch?v=MFR4WXiLzpc

Sometimes it can get a bit difficult to find out the right selector to be able to write the required CSS codes. A handy tool that can help you in this is Google Chrome dev tools. I am sharing the resource that you can refer to get started with dev tools.

https://developers.google.com/web/tools/chrome-devtools/css/

https://developers.google.com/web/tools/chrome-devtools/

https://www.youtube.com/watch?v=tP_kXBJWPhQ&t=200s

Thanks.

That worked. I added a few other lines of code to make it look nice.
Thanks,
LF

Glad it worked for you.

Cheers!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.