I want to use a full screen background on the homepage, I use a hook and a css.
This is my css:
#ktgbild {
position: fixed;
top: 0;
left: 0;
/* Preserve aspet ratio */
min-width: 100%;
min-height: 100%;
z-index: -1;
}
This is the wp_head hook:
<?php if ( is_home() ) : ?>
<img src='http://huppenb ---- rath/wp-content/uploads/bgimage/rotate.php' alt='' />
<?php endif; ?>
On many sites it worked. Now the page header overwrites the top of my homepage as you can see on my site.