jonathanduane2010
asked on
adding in background image on body of page
hi guys,
i want to add an image as background in the body of my wordpress site, how do i do that i am using theattached code as a template
thanks
i want to add an image as background in the body of my wordpress site, how do i do that i am using theattached code as a template
<?php
/*
Template Name: My Custom Indexer Page
*/
get_header(); ?>
<div id="primary" class="site-content">
<div id="content" role="main">
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', 'page' ); ?>
<?php //comments_template( '', true ); ?>
<?php endwhile; // end of the loop. ?>
</div><!-- #content -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
<div class="photos_videos">
<h2>PHOTOS & VIDEOS</h2>
<div id="banner-fade">
<!-- start Basic Jquery Slider -->
<ul class="bjqs">
<?php query_posts("cat=4");
while (have_posts()) : the_post(); ?>
<?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); ?>
<li><a href="<?php the_permalink(); ?>"><img src="<?php echo $image[0]; ?>" title="<?php the_title(); ?>"></a> </li>
<?php endwhile;
wp_reset_query(); ?>
</ul>
<!-- end Basic jQuery Slider -->
</div>
</div> <!-- #photos_videos -->
<div class="widget widget_foo_widget new1" id="foo_widget-2" >
<h3>Latest News</h3>
<?php query_posts("cat=3&showposts=3");
while (have_posts()) : the_post();
echo '<h2><a href="'.get_permalink().'">'.get_the_title().'</a><span>'.get_the_date('d-M-Y').'</span></h2>';
echo '<p>'.substr(get_the_excerpt(),0,100).'...</p>';
endwhile;
wp_reset_query(); ?>
</div>
<div class="box_row4">
<!--<a href="#"><img src="<?php //bloginfo('template_url') ?>/images/oxygen_map.png"></a>
<a href="#"><img src="<?php //bloginfo('template_url') ?>/images/wexford_img.png"></a>
<a href="#"><img src="<?php //bloginfo('template_url') ?>/images/booking_forms.png" style="margin-right:0px;"></a>-->
<a href="http://www.piratescove.ie/competitions-2/"><div class="red1">Competitions</div></a>
<a href="http://www.courtownharbour.com" title="Courtown Harbour Website"><div class="green1">Courtown Harbour</div></a>
<a href="http://www.piratescove.ie/hire-us/"><div class="blue1" style="margin-right:0px;">Hire Us</div></a>
</div>
</div><!-- #content -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
thanks
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.