Question about my template.
-
Hey everyone, im working on a theme and i have a background and all that im using but im trying to use another background or custom images for the content background and sidebar so in all it would just be the background for both, below i have some code for the container area where the main posts and sidebar will be in. If you can help me try and figure this out, im not sure whys its doing this but i try to add another div and add a color or bg image and nothing shows up. Thanks in advance.
<?php get_header(); ?> <DIV id="container"> <?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?> <DIV class="post"> <h2><a href="<?php the_permalink(); ?>" ><?php the_title(); ?></a></h2> <DIV class="entry"> <p class="postmetadata"> <?php _e('Place Under:'); ?> <?php the_category(', ') ?> <?php _e('by'); ?> <?php the_author(); ?><br /> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?> <?php edit_post_link('Edit', ' | ', ''); ?> </p> <?php the_content(); ?> </DIV> </DIV> <?php endwhile; ?> <DIV class="navigation"> <p><?php posts_nav_link(' || ','«« Go Forward','Go Back »»'); ?></p> </DIV> <?php else : ?> <DIV class"post" id="post-<?php the_ID(); ?>"> <h2><?php _e('Not Found'); ?></h2> </DIV> <?php endif; ?> </DIV> <?php get_sidebar(); ?> </DIV> <?php get_footer(); ?>
The topic ‘Question about my template.’ is closed to new replies.