Hi,
First of all, sorry if my thread is in the wrong category, it's my first time here ^^ .
I'm using a Javascript code to add a background image to my blog.
<!-- In my <head>: -->
<script src="http://www.coding-by-head.org/bgMax.min.js" type="text/javascript"></script>
<!-- before the </body> : -->
<script type="text/javascript">
var options = {
position : "fixed"
};
bgMax.init("http://www.coding-by-head.org/wp-content/uploads/2012/09/london_street-wallpaper-2560x1440_bw.jpg", options);
</script>
As you can see, I have to type manually the URL of my image. I would like to use the PHP variable (or something else if it's not a variable) used by WordPress to write this HTML code:
<style type="text/css" id="custom-background-css">
body.custom-background { background-image: url('http://www.coding-by-head.org/wp-content/uploads/2012/09/whatevertheimageis.jpg'); background-repeat: no-repeat; background-position: top left; background-attachment: fixed; }
</style>
So I would like to know how WordPress marks the URL of the background image.
I only have found that it is makes trought the wp_head() function but when I look for this function in generate_template.php, I don't find what I'm looking for (the HTML code). I searching for few minutes now and still don't find it.
Does anyone know where this html code is in the WordPress files (or what is the PHP code that is about it)?
Thank you in advance!
HeadCoder.
P.S: In case if you need to know, my wordpress project is located there: http://www.coding-by-head.org/ .