Created
April 14, 2016 12:40
-
-
Save sibaberpollo/c0474aada276707f9aef65aa777334a4 to your computer and use it in GitHub Desktop.
iris
This file contains 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
<style> | |
.banner { | |
background: url(<?php | |
if(is_home() || is_front_page()) { ?> | |
../images/4.jpg) <?php }else { ?> | |
$urlFeaturred = wp_get_attachment_url( get_post_thumbnail_id($post->ID, 'thumbnail') ); | |
echo $urlFeaturred; | |
<?php } ?> no-repeat 0px 0px; | |
} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment