Forums

Different banners on every page (4 posts)

  1. kcire
    Member
    Posted 4 years ago #

    At the moment I have 2 banners placed vertically at my website. But this setup of those 2 banners appear on every single page of my website ( http://www.linkage.nl/ ).

    How can I have 'bannerset A' on the index page and archive pages, but 'bannerset B' on all other pages? For example...

    Something with the templates...But what?

  2. moshu
    Member
    Posted 4 years ago #

  3. kcire
    Member
    Posted 4 years ago #

    Hey Moshu,
    This is it! Thanks! As a PHP-rookie I was wondering how to fit the following lines of code into the solution of the conditional text.

    For example the following code:

    <div class="banner">
    a href="http://www.boonika.com/" title="Visit Boonika in a new window."> </div>

    (The a href should be correct, but it's with a bg-img in a stylesheet and otherwise it wouldn't be visible what I mean)

    I want to work with:

    <?php
    if (is_single())
    {
    echo 'This is just one of many fabulous entries in the ' . single_cat_title() . ' category!';
    }
    ?>

    Thanks again...

  4. kcire
    Member
    Posted 4 years ago #

    Mmhh...This is actually quite perfect!

    Never mind the previous post!

Topic Closed

This topic has been closed to new replies.

About this Topic