Title: Adding code for a banner
Last modified: August 18, 2016

---

# Adding code for a banner

 *  [Ronin](https://wordpress.org/support/users/ronin/)
 * (@ronin)
 * [19 years ago](https://wordpress.org/support/topic/adding-code-for-a-banner/)
 * Hi there,
 * If I want a banner to appear above the first post on my blog [here](http://www.thepokerbiz.com),
   where should I put the code?
 * Thanks

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [rudolf45](https://wordpress.org/support/users/rudolf45/)
 * (@rudolf45)
 * [19 years ago](https://wordpress.org/support/topic/adding-code-for-a-banner/#post-542890)
 * Try to put it in your index.php template file just above the Loop.
 *  Thread Starter [Ronin](https://wordpress.org/support/users/ronin/)
 * (@ronin)
 * [19 years ago](https://wordpress.org/support/topic/adding-code-for-a-banner/#post-542952)
 * Sorry mate, I’m a bit of a newbie with this. Where is the Loop in the index.php
   file?
 * Here is my index.php file:
 *     ```
       <?php get_header(); ?>
   
       <div id="page_container">
   
       <?php get_sidebar(); ?>
       <?php include (TEMPLATEPATH . '/leftbar.php'); ?>
   
       <div id="postcol" class="fixheight">
       <div id="pc_t" class="fixheight">
       <div id="pc_r" class="fixheight">
       <div id="pc_b" class="fixheight">
       <div id="pc_l" class="fixheight">
       <div id="pctl" class="fixheight">
       <div id="pctr" class="fixheight">
       <div id="pcbr" class="fixheight">
       <div id="pcbl" class="fixheight">
       <div id="pc_c" class="fixheight">
       <?php if (have_posts()) : ?>
       <?php while (have_posts()) : the_post(); ?>
       	<div class="postbox">
       	<div class="right">
       	<div class="bottom">
       	<div class="left">
       	<div class="post_title">
       		<div class="top">
       		<div class="right">
       		<div class="left">
       		<div class="tl">
       		<div class="tr">
       		<h2 id="post-<?php the_ID(); ?>" class="title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
       		<small class="title">Posted by <?php the_author() ?> on <?php the_time('F jS, Y') ?></small>
       	</div></div></div></div></div></div> <?php /* post_title */ ?>
       	<div class="br">
       	<div class="bl">
       	<div class="content">
       		<?php the_content('Read the rest of this entry &raquo;'); ?>
       		<p class="postmetadata"> <?php the_category(', ') ?> <strong>|</strong> <?php edit_post_link('Edit','',' <strong>|</strong> '); ?><?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
       	</div></div></div></div></div></div></div> <?php /* postbox */ ?>
       <?php endwhile; ?>
       <div class="navigation">
       	<div class="alignleft"><?php posts_nav_link('','','&laquo; Previous Entries') ?></div>
       	<div class="alignright"><?php posts_nav_link('','Next Entries &raquo;','') ?></div>
       </div> <?php /* navigation */ ?>
       <div style="clear: both"></div>
       <?php else : ?>
       	<h2 class="center">Not Found</h2>
       	<p class="center"><?php _e("Sorry, but you are looking for something that isn't here."); ?></p>
       <?php endif; ?>
       <?php get_footer(); ?>
       ```
   
 *  [rudolf45](https://wordpress.org/support/users/rudolf45/)
 * (@rudolf45)
 * [19 years ago](https://wordpress.org/support/topic/adding-code-for-a-banner/#post-543217)
 * Good reading (for newbies) [http://codex.wordpress.org/The_Loop](http://codex.wordpress.org/The_Loop)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Adding code for a banner’ is closed to new replies.

 * 3 replies
 * 2 participants
 * Last reply from: [rudolf45](https://wordpress.org/support/users/rudolf45/)
 * Last activity: [19 years ago](https://wordpress.org/support/topic/adding-code-for-a-banner/#post-543217)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
