Custom code after widgets


Author Message
Bruno

Posted: 1/20/2010
Quote message 

Hi, I have the need to add a custom code on the sidebar after the widgets block. The code use the conditional tags, i.e. is_single(), but nothing happens

Example:
<div class="art-sidebar2">

<?php if (!art_sidebar(2)): ?>
<?php endif ?>
<?php if (is_single()) get_ads('crociere2'); ?>
</div>


If I put the conditional tag before the widgets block, then it works
<div class="art-sidebar2">   

<?php if (is_single()) get_ads('crociere2'); ?>
<?php if (!art_sidebar(2)): ?>
<?php endif ?>
</div>


Can someone help me to solve this?

Thanks
Ciao

Bruno