WordPress.org

Forums

full page randomic backgrond (2 posts)

  1. connectto
    Member
    Posted 2 years ago #

    hello im looking for a solution to implement a full page randomic background image - im using twenty eleven theme, but not the original - i made a copy of it and changed the name (had some problems to work with a child theme so did this to solve the problem faster, sorry dont know if is a good solution)

    i did some research in google and here in this forum. found some codes, but couldnt implement correctly. so im posting here, maybe this can help me and other people with the same problem

    heres my WP test online http://www.connectto.com.br/websites/ - at moment im not using any kind of randomic image

    already tried this codes:

    1 - http://ma.tt/scripts/randomimage/ - in this one i created the php page but couldnt apply this to my css - where should i call this page in my css ? this exemple is how i did but didnt work

    /* =Global
    ----------------------------------------------- */

    body, input, textarea {
    color: #373737;
    font: 15px "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 300;
    line-height: 1.625;
    }
    body {
    background-image:url(rotate.php);
    }

    didnt work this way...

    2 - here i found more solutions http://wordpress.org/support/topic/random-background-image-2?replies=16

    but some call the image inside a div, other tell me to put in header .. just didnt understand how this will work with my page background and css which at moment is just like this:

    body {
    background: #e2e2e2;
    }

    also some tell that only work if my server uses glob which i dont know what is it at all

    3 - in my simple websites (when im not using WP system) i just have a good javascript that do the work, but also dont know how to implement in WP. its some code lines in javascript , inserted at <head> of all pages of the website.

    read some here in this forum, telling me to use template files to apply javascript to WP http://codex.wordpress.org/Using_Javascript , but how can this java in a template file manipulate all the backgrounds of my website, this is a mistery to me, - also couldnt use this solution, just dont know how to use it..

    --------- so, anyone have a good ideia of how can i implement some of this codes or any other code to, in a simple way, add randomic background images, full screen, to all pages of my wordpress website ?

    thanx and sorry about my bad english

  2. connectto
    Member
    Posted 2 years ago #

    in the first exemple, from http://ma.tt/scripts/randomimage/ it gives an image link to insert in code, calling the php page - its an image link not an background-image .. how can i apply this to

    body {
    background-image:url(rotate.php);
    }

    ?

    if someone know how can i use one of the exemples in my post or any other way to do randomic background images, full screen, in all wordpress pages in my website, please help ! :)

    [ Please do not bump, that's not permitted here. ]

Topic Closed

This topic has been closed to new replies.

About this Topic