Created
March 28, 2017 14:47
-
-
Save luisfelipe-dev/5a3c95a8d2199194162435313b7eff7b to your computer and use it in GitHub Desktop.
Colocar a imagem de destaque do Wordpress como background.
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 $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'post' ); ?> | |
| <div class="foto_blog-novo" style='background: url("<?php echo $image[0]; ?>") no-repeat center; background-size: cover;' > | |
| </div><!-- /foto_blog-novo --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment