Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #104190
    Elke
    Participant

    Dear Mahesh,

    I haven’t found anything about this in forum, so here’s another question: is it possible, to use a background image on some pages (not posts), for example komma-duesseldorf.de/team/ page-id-52?

    And, if it’s so, does the image must have specific size, e. g. 600 x600 px, or is it possible to use 500×200 px and repeating the image?

    Thanks a lot!

    Regards,
    ElkeHB

    #104238
    Mahesh
    Participant

    @elkehb: Add the following CSS:

    body.custom-background.page-id-52 {
        background-image: url('url-to-background-image');
        background-repeat: repeat;
    }

    Note: Please replace url-to-background-image in the above code with the actual image url.

    Regards,
    Mahesh

    #104260
    Elke
    Participant

    @ Mahesh:

    Thank you for the fast answer, but the code doesn’t solve my problem.
    Perhaps, I haven’t wrote it exactly…

    I mean a different background image within the page, so that it appears behind the text.

    Is that possible?

    Thanks!!!

    Regards,
    ElkeHB

    #104293
    Mahesh
    Participant

    @elkehb: For that use the following CSS:

    body.custom-background.page-id-52 #main {
        background-image: url('url-to-background-image');
        background-repeat: repeat;
    }
      
    article.hentry {
        background-color: transparent;
    }

    Note: Please replace url-to-background-image in the above code with the actual image url.

    Regards,
    Mahesh

    #104321
    Elke
    Participant

    @Mahesh,

    great, that’s it! Works fine, thanks a lot!

    Regards,
    ElkeHB

    #104381
    Mahesh
    Participant

    @elkehb: Thank you for your appreciation. Have a nice day!

    Regards,
    Mahesh

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Background image on some, not all pages’ is closed to new replies.