Different coding for different pages
-
Is there a way to change the code so that one page on the website has the back-ground color totally opaque so it doesn’t show at all?
The blog I need help with is: (visible only to logged in users)
-
To be more specific, on my Fun Resources page on susanvitalis.com, I want the background color to be totally transparent.
-
Hi Susan,
Is it the blue background on the content you’d like to remove?
If so, please try adding the custom css below to your site.
If it doesn’t have the desired effect, please keep the css in the customizer so that we can troubleshoot it further. Thanks :)
.page-id-484 #content { background: transparent; } -
-
-
Is it possible to change the background image for one page? I’m talking about the waterfall background image that is set up to show on every page.
-
Yes, it’s possible.
If it’s for the same “Fun Resources” page, please try adding the css below. You can replace the image url with the image you wish to use instead.
body.page-id-484 { background-image: url("https://susanvitalis.files.wordpress.com/2017/03/headshot.jpg"); }If the css doesn’t work as intended, or if needs to be tweaked to suit your needs, please let me know.
Thanks :)
-
Again, thank you so much! I just need to edit the size of the picture to fill the page and that is exactly the result I was looking for.
-
You’re welcome.
If you’d like the image to automatically fill the available space in the body, you can try using background-size: cover; in the css.
Here’s an example css snippet that can replace the previous one:
body.page-id-484 { background-image: url("https://susanvitalis.files.wordpress.com/2017/03/img_5424-e1490812613756.jpg"); background-size: cover; } -
To apply the same css to all body background images, try adding this:
body.custom-background { background-size: cover; } -
You are amazing. Thank you so much. My site is going to be so much better because of your help.
-
- The topic ‘Different coding for different pages’ is closed to new replies.