full page randomic backgrond
-
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 https://www.connectto.com.br/websites/ – at moment im not using any kind of randomic image
already tried this codes:
1 – https://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 https://www.ads-software.com/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 https://codex.www.ads-software.com/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
- The topic ‘full page randomic backgrond’ is closed to new replies.