Created
April 10, 2015 13:03
-
-
Save oleksapro/630c8ec791013981e39e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PHP: | |
<?php $background = wp_get_attachment_image_src( get_post_thumbnail_id( $page->ID ), 'full' ); ?> | |
HTML: | |
<div style="background-image: url('<?php echo $background[0]; ?>');"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment