Change background for a specific page.
-
Hi !
First of all, thank you for this wonderful theme, documentation, and videos. It's easy and broke my reluctance to code.I'm pretty a newbie with html / css and I really tried to do it by myself but can't find why it's not working. I'm trying to add a background image for a specific page of my girlfriend's website.
This is the page I want to change:
http://charleneguyonmathe.com/overviewIn my CSS, I added, as you suggested on your tutorial, a class with background url:
body.slug-overview{background:url('http://charleneguyonmathe.com/wp-content/uploads/2016/12/background-v2.jpg'}
Thank you for your help
-
Hey thanks a lot!
There is just one minor thing in your CSS:
body.slug-overview{background:url('http://charleneguyonmathe.com/wp-content/uploads/2016/12/background-v2.jpg'}
should be
body.slug-overview{ background-image: url("http://charleneguyonmathe.com/wp-content/uploads/2016/12/background-v2.jpg"); }
source:
https://developer.mozilla.org/en/docs/Web/CSS/background-imageHope it works for you :)
-
Thank you !
I'm confused I made you loose your time...
Sometimes the solution is so easy you don't see it !! -
@arno_aubry or @arminunruh could you post the link to the tutorial, that is meant in the first question? I'm searching for a solution of the same topic and as it seems you were successfull. Thats why the link would help me a lot.
Cheers
and thanks Armin for the wonderful theme and support-Forum! -
I think I found it myself. Thanks anyway!
http://laytheme.com/documentation.html#css-based-on-current-page -
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it