I’m attempting to use the ‘feature image’ feature of WordPress to make a full screen background, that resizes to fit the browser window using jQuery
The bit I’m stuck on is adding a custom id (#bgimg) to the code generated by this:
<div class="background"><?php the_post_thumbnail (array(1024,768));?></div>
The image generated needs to have specific id tag in it, eg…
<img id="bgimg" src="https://wordpress.stackexchange.com/questions/5454/wordpress/generated/etc.jpg">
So that the jQuery plugin, can hook on to it, and scale it to fit the browser window. I know the jQuery works (as I’ve used it in other projects)
Any suggestions?
Alex