• Resolved hugoatv

    (@hugoatv)


    Hi,

    i have change the code to of my header template cause i need ton insert banners only on category.php.

    the code :

    <?php
    if (is_home()) {
                   echo "HOMEPAGE";
    } elseif (is_category()) {
             //echo "CATEGORIES";
    // first echo doesn't works
    echo "<div id='banniereHeader'>[wp_bannerize('group=header&limit=1&random=1');]</div>";
    // 2nd echo doesn't works too
    echo "<div id='banniereHeader'>
    <?php wp_bannerize('group=header&limit=1&random=1');?></div>";
    } elseif (
    
    etc...
    ?>
    
    before i only used <div id='banniereHeader'>
    <?php wp_bannerize('group=header&limit=1&random=1');?></div> without "echo"

    so i don’t know how to make this code compatible,

    thanks for your tips ??

    https://www.ads-software.com/extend/plugins/wp-bannerize/

  • The topic ‘Inser my banner into an echo’ is closed to new replies.