1 blackcat2 Sep 04, 2005 13:46
3 yabba Sep 04, 2005 17:31
Add this to your style sheet (chage the widths to suit) :-
.news_left{
width:10em;
float:left;
margin:0 1em 1em 0;
}
.news_right{
width:10em;
float:right;
margin:0 0 1em 1em;
}
Then, when posting, use :-
<div class="news_left">This will be on the left</div>
or
<div class="news_right">This will be on the right</div>
¥
4 blackcat2 Sep 08, 2005 06:47
That isn't going to work as I can't put the code for the ad in the post for one thing. For the other I was hoping for something more automated so that every time I posted it would just place the ad in there.
Thanks for the help though. :)
Update: okay I figured it out with a little help from your CSS idea. :D
In the main.php right under
<div class="bText">
is where I put this:
<div class="news_right">
My Ad Code in here
</div>
and it worked fine. now just to figure out how to get it not show on the main page above the 'read more' link.
Thanks again for the help. :D
5 yabba Sep 08, 2005 12:08
<?php
if ( $more )
{
?>
<div class="news_right">
Your Ad Code in here
</div>
<?php
}
?>
;)
¥
6 blackcat2 Sep 08, 2005 18:11
¥åßßå wrote:
<?php if ( $more ) { ?> <div class="news_right"> Your Ad Code in here </div> <?php } ?>
;)
¥
You have my gratitude. That worked perfectly. Thank you so very much. :D
7 blogger4832 Aug 01, 2006 06:30
This works great!
Now, is it possible to put the ads AFTER the MORE, when someone reads the full article, rather than at the very beginning?
I'm using the custom skin.
I've moved this topic to the right area, so you might get a better response.