• Hi,

    I would like to have different sets of sidebars. One on the main page, opne for single posts, one for category pages etc. Maybe even have different headeras. Is this possible? Is there some way I can call:

    <?php get_sidebar1(); ?>

    <?php get_sidebar2(); ?>

    <?php get_sidebar3(); ?>

    …and then have different sidebar.php and header.php files?

    Or is there anbother way I can achieve this? One problem I come across for example (amongst others) is that I want Google adsense on single post pages but no on the mian page. So I need 2 sidebars already…and there’s more of these slight hitches 🙂

    Cheers!

    Chris

Viewing 2 replies - 1 through 2 (of 2 total)
  • delete <?php get_sidebar(); ?>

    insert <?php include ('sidebar1.php'); ?> and your new sidebar will come into play.

    delete <?php get_header(); ?>
    insert <?php include ('header1.php'); ?>
    and your new header will come into play.

    if:

    sidebar1.php & header1.php are the names of your new templates. You can call them whatever you want, basically.

    Unless someone else has a better way of doing things?

    Thread Starter chrisatlemon

    (@chrisatlemon)

    Ah! Lateral thinking, very nice, of course, thank you very much, this makes sense 🙂

    Cheers

    Chris

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Different Sidebars for different pages…possible?’ is closed to new replies.