laras126 / wpfolio-two

(Deprecated) Reworking of the WPFolio WordPress theme for artists into the Thematic theme framework
6 stars 2 forks source link

Display sidebar even when no category has been chosen #52

Open laras126 opened 12 years ago

laras126 commented 12 years ago

remove_sidebar() in library/wpf/wpf-functions.php. Right now it messy, like this:

if ( $cat_option != 'Select a Category:' ) {
    if ( in_category($blog_catid) ) {
        return TRUE;
    } else {
        return FALSE;
    }
} elseif ( !is_home() ) {
    return FALSE;
} else {
    return TRUE;
}

Figure out a better determinate than 'Select a category:'