Forums

Widgitzed Sidebars (3 posts)

  1. 314media
    Member
    Posted 2 years ago #

    I'm using some if thens to make my sidebars different for each page.. Problem I run into is that the home page doesn't want anything to do with it.

    Here's part of the sidebar statement:

    if(is_home() || is_front_page()) {
    if (!function_exists('dynamic_sidebar') || !dynamic_sidebar( 'home') ) { $generic_sidebar = true; }
    }
    elseif ( is_tree('about') ) {
    if (!function_exists('dynamic_sidebar') || !dynamic_sidebar( 'about') ) { $generic_sidebar = true; }
    }
    ...etc

    And the functions:

    if ( function_exists('register_sidebars') ) {
    register_sidebar(array('name'=>'home'));
    register_sidebar(array('name'=>'about'));

    So I'm not sure really how to use the if_home and the is_tree together..

    The sidebars on the pages work, but the home page refuses to work. Can anyone help??

  2. 314media
    Member
    Posted 2 years ago #

    Oh; forgot to mention; I have no index.php...

    I have:
    home.php
    index.php - blank
    page.php
    single.php

    ...maybe that's what's causing it. No index.php

  3. 314media
    Member
    Posted 2 years ago #

    nope.. copied and pasted the home.php into the index.php page and to no avail...

Topic Closed

This topic has been closed to new replies.

About this Topic