Forums

Change Background Image per page (3 posts)

  1. kons
    Member
    Posted 2 years ago #

    hey,
    i searched , but couldnt find what i was searching for. so...if you know a thread where this was answered...
    i want to have an background image on my home, which is a page assigned to home and another on all other cases.

    ..and... im a php noob...
    thanks
    kns

  2. 44calshak
    Member
    Posted 1 year ago #

    Hey buddy, I have exactly the same question - did you find out how to do it? I have used the traditional way of setting the main background through appearance settings but I want a different background on a few different pages... H

  3. 44calshak
    Member
    Posted 1 year ago #

    I used by brain:

    COPY & PASTE THIS CODE INTO THE HTML EDITOR OF THE PAGE YOU WISH TO CHANGE THE BACKGROUND IN. THIS WILL NOT EFFECT YOUR OTHER PAGES AND THIER DEFAULT BACKGROUND:

    <?php if (is_page('PAGEINQUESTION') ):
    // PAGEINQUESTION>
    <style type="text/css">
    body {background-image:url(PASTE THE FULL WEB LINK FOR DESIRED PICTURE HERE);background-repeat:repeat;}
    </style>

    N.B. 'PAGEINQUESTION' is just the extra name added to your web-address, the same name that you see automatically added when you start a new page and underneath there is your webaddress and a 'little extension'.

Topic Closed

This topic has been closed to new replies.

About this Topic