View Full Version : Add banners to top of my index page?
wahmsuzanne
11-18-2008, 11:36 PM
I have a couple of banners that I want to stay at the very top (right below the navigation buttons) ... I was going to try to use Dreamweaver to add them in visually and then take that code and put it on my index page so it would add the spacing ...
But ... I've heard that Dreamweaver adds code to it or something ... so will that mess it up? Thanks! *SmiLes* Suzanne
athlon24
11-19-2008, 01:33 AM
true, dreamweaver change the way you code. and if you are using wordpress, things will be different.
you just need to figure out where's the location you want to put it in and put the code of the banner there.
wahmsuzanne
11-19-2008, 01:39 AM
true, dreamweaver change the way you code. and if you are using wordpress, things will be different.
you just need to figure out where's the location you want to put it in and put the code of the banner there.
I don't know how to do that ... they are half/banners ... and I want them side by side ...
XXXXXXXXXXXXXX XXXXXXXXXXX
Makes sense? So for the first one ... I go to the top before the code for the ... I have no idea where actually! Does it go on this page? If so ... where?
<?php get_header(); ?>
<div id="wrap">
<div id="content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="date">
<span class="d1"><?php the_time('M'); ?></span><br />
<span class="d2"><?php the_time('j'); ?></span><br />
<span class="d3"><?php the_time('Y'); ?></span>
</div>
<h1><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
<div>
<div class="cat_aut">Under <?php the_category(', ') ?> By <span style="text-transform:capitalize"><?php the_author_posts_link(); ?></span></div>
<div class="postinfo"><img src="<?php bloginfo('template_url'); ?>/images/i_com.gif" align="top" alt=""></img> <span class="koment"><?php comments_popup_link('Comment', '1 Comment', '% Comments'); ?></span></div>
</div>
<?php the_content(__('Continue Reading >>'));?>
<div class="clearer"></div><br />
<!--
athlon24
11-19-2008, 01:45 AM
if you want it to before the list of posts, possibly putting it before the condition works.
<?php get_header(); ?>
<div id="wrap">
<div id="content">
XXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXX
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="date">
<span class="d1"><?php the_time('M'); ?></span><br />
<span class="d2"><?php the_time('j'); ?></span><br />
<span class="d3"><?php the_time('Y'); ?></span>
</div>
wahmsuzanne
11-19-2008, 01:54 PM
if you want it to before the list of posts, possibly putting it before the condition works.
<?php get_header(); ?>
<div id="wrap">
<div id="content">
XXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXX
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="date">
<span class="d1"><?php the_time('M'); ?></span><br />
<span class="d2"><?php the_time('j'); ?></span><br />
<span class="d3"><?php the_time('Y'); ?></span>
</div>
OK ... this totally worked THANKS!
I am clueless about the spacing and alignment and such so I'll keep playing with it ... I think I'll move the BootCamp banner to the bottom of the post and try to center the Sponsor Directory at the top. *sigh*
If you know how to do that please let me know ... someone? anyone? Thanks!!!!!!!!!! *SmiLes* Suzanne
Donace
11-19-2008, 02:15 PM
I have no idea where yours will be :p but my one adding it before
<?php $pcount++; endwhile; ?>
on index.php and single post made it work (banner after a post)... regarding 'centre'
align="center" or <center> the html </center> works for me
Though I would recommend for ease using oiopublisher..that way you can just add its Javascript there and edit the banners how you wish...i.e replace it etc.
Affil link (http://www.oiopublisher.com/ref.php?u=1542)
Non Afil (http://www.oiopublisher.com/)
A demo can be seen on thenexus if you wanna see how it works
EDIT: side line...your 'directory' link leads me to a 404
Kevin
11-19-2008, 03:38 PM
OK ... this totally worked THANKS!
I am clueless about the spacing and alignment and such so I'll keep playing with it ... I think I'll move the BootCamp banner to the bottom of the post and try to center the Sponsor Directory at the top. *sigh*
If you know how to do that please let me know ... someone? anyone? Thanks!!!!!!!!!! *SmiLes* Suzanne
if you post the full index.php file I can do this for you. You can attach a text file if you prefer.
Just to clarify, you want the boot camp banner at the bottom of the page and the blogging idol sponsor directory at the bottom, both being aligned?
wahmsuzanne
11-19-2008, 08:05 PM
if you post the full index.php file I can do this for you. You can attach a text file if you prefer.
Just to clarify, you want the boot camp banner at the bottom of the page and the blogging idol sponsor directory at the bottom, both being aligned?
Thanks for your help Kevin ... it's looking great! *SmiLes* Suzanne
Kevin
11-19-2008, 08:24 PM
no problem :)
vBulletin® v3.8.3, Copyright ©2000-2012, Jelsoft Enterprises Ltd.