use header-image as background-img
-
how can i get the header-image-url to my css-file.
I need sth like
background: url(<?php do_shortcode(‘[WP_HEADER_IMAGES]’)?>) no-repeat;
or
background: url(<?php do_action(‘apply_header_images’); ?>) no-repeat;to get the right code as url and not as lik I changed the code in header-images.php
from
<div class=”header_image”>
<img src=”<?php echo $img_url; ?>” />
</div>
to
<?php echo $img_url; ?>but it’s not working. Also to call directly the variable
background: url(<?php echo $img_url; ?>) no-repeat;
does not work.
I think I need to include some files in my css-file (ok, it’s an php-file, no worries ?? )Can You help me???
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘use header-image as background-img’ is closed to new replies.