Last active
July 11, 2016 14:57
-
-
Save aslamhindko/adbff0f4ef7943bddc46db66ca7bd3cc to your computer and use it in GitHub Desktop.
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
(agar loop main BG image ho tu ye loop use kare ge = loop ka akari main background ki css rakhe ge) | |
<?php $my_query = new WP_Query('page_id=45'); | |
while ($my_query->have_posts()) : $my_query->the_post(); ?> | |
<?php | |
if(has_post_thumbnail()){ | |
$thumbnailaaa = wp_get_attachment_image_src(get_post_thumbnail_id(),'full', true); | |
} | |
?> | |
<h1 class="animate" data-animation="fadeInDown" data-duration="100"><?php the_title();?></h1> | |
<?php the_content(); ?> | |
<?php endwhile; ?> | |
<style> | |
section.mission {background: url("<?php echo $thumbnailaaa[0]; ?>") no-repeat center center fixed;background-size: cover;} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment