Background Images & Implementation
-
Hi Nevma,
I feel like I have read all the posts regarding this topic and I was not able to find a solution.
I would really like to use your plugin. I need a solution which works in conjunction to what you have made. I need my featured image to be displayed as a background image in my post header. When people access the post on different devices I need the correct image size to load.
My solution which isn’t loading an adaptive image.
`
<?php global $post; ?>
<?php
$src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), array( 5600,1000 ), false, ” );
?>
<header class=”entry-header pad-tb3″ id=”startchange” style=”background: url(<?php echo $src[0]; ?> ) !important;”>
‘I feel like I’m not the only one experiencing this issue. I am hoping you can help us figure this out. Thanks for your time, – Nate.
- The topic ‘Background Images & Implementation’ is closed to new replies.