0

I use wordpress 4.0.5 and Minamaze Theme (https://wordpress.org/themes/minamaze)

The Minamaze Theme gives me the opportunity to add custom CSS, without having to edit any files, so I added:

body, #body-core {
background: url(http://leona-anderson.com/wp-content/uploads/2014/09/background40.png) fixed;
background-size:100% auto;
}

Adding this CSS sets the background properly. What I want to achieve now is, having differnt (like 2 or 3) background images on different pages.

Has anybody an idea how I could do this?

Thanks in advance

closed as off-topic by Pieter Goosen, Mark Kaplun, Johannes Pille, birgire, s_ha_dum Oct 3 '14 at 15:48

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Your question should be specific to WordPress. Generic PHP/JS/HTML/CSS questions might be better asked at Stack Overflow or another appropriate site of the Stack Exchange network. Third party plugins and themes are off topic." – Pieter Goosen, Mark Kaplun, Johannes Pille, birgire, s_ha_dum
If this question can be reworded to fit the rules in the help center, please edit the question.

  • Depends on how the Minamaze theme allows for the extra CSS, and that makes the question off topic as being dependent upon third party code. – s_ha_dum Oct 3 '14 at 15:48
3

Take a look in the source code, and you'll see the body tag on every page and/or post has a unique class associated with it (postid-1241 for example).

Select that class and change the background image there.

Example:

body.postid-1241 {
    background: url(http://example.com/bg.png) fixed;
}
  • You are right this works, thanks for that input :) – Jakob Abfalter Oct 1 '14 at 15:37

Not the answer you're looking for? Browse other questions tagged or ask your own question.