ThemeShaper Forums » Thematic

removed sidebar from home, everything worked, now sidebar is gone all together

(5 posts)
  • Started 1 year ago by mrmikeman
  • Latest reply from helgatheviking
  • This topic is not resolved

Tags:

  1. mrmikeman
    Member

    I removed the right sidebar from the home page as i wanted too, and all other pages had a right sidebar, but now some how their all gone... im trying to have the right sidebar appear on everything accept the home front page..

    this is my functions.php

    <?php

    //
    // Custom Child Theme Functions
    //

    // I've included a "commented out" sample function below that'll add a home link to your menu
    // More ideas can be found on "A Guide To Customizing The Thematic Theme Framework"
    // http://themeshaper.com/thematic-for-wordpress/guide-customizing-thematic-theme-framework/

    // Adds a home link to your menu
    // http://codex.wordpress.org/Template_Tags/wp_page_menu
    //function childtheme_menu_args($args) {
    // $args = array(
    // 'show_home' => 'Home',
    // 'sort_column' => 'menu_order',
    // 'menu_class' => 'menu',
    // 'echo' => true
    // );
    // return $args;
    //}
    //add_filter('wp_page_menu_args','childtheme_menu_args');

    // Unleash the power of Thematic's dynamic classes
    //
    // define('THEMATIC_COMPATIBLE_BODY_CLASS', true);
    // define('THEMATIC_COMPATIBLE_POST_CLASS', true);

    // Unleash the power of Thematic's comment form
    //
    // define('THEMATIC_COMPATIBLE_COMMENT_FORM', true);

    // Unleash the power of Thematic's feed link functions
    //
    // define('THEMATIC_COMPATIBLE_FEEDLINKS', true);

    function add_post_thumb($title) {
    return get_the_post_thumbnail(NULL, 'medium') . $title;
    }
    add_filter('get_the_excerpt', 'add_post_thumb');
    add_filter('the_content', 'add_post_thumb');
    function childtheme_override_postheader_postmeta(){

    //the sound of one hand clapping
    }

    function remove_index_loop() {
    remove_action('thematic_indexloop', 'thematic_index_loop');
    }
    add_action('init', 'remove_index_loop');

    function snippet_index_loop() {
    global $post;
    /* Count the number of posts so we can insert a widgetized area */ $count = 1;
    while ( have_posts() ) : the_post() ?>
    <?php $counter++; ?>
    <div class="column1 <?php if ($counter == 1) { echo 'one'; } else { echo 'two'; $counter = 0; } ?>">
    <div class="clear-fix">
    <div id="post-<?php the_ID() ?>" class="<?php thematic_post_class() ?>">
    <?php thematic_postheader(); ?>
    <div class="entry-content">
    <?php the_excerpt(); ?>
    <?php wp_link_pages('before=<div class="page-link">' .__('Pages:', 'thematic') . '&after=</div>') ?>
    </div>
    <?php thematic_postfooter(); ?>
    </div><!-- .post -->
    </div><!-- .clear-fix -->
    </div><!-- .column -->

    <?php comments_template();
    if ($count==$thm_insert_position) { get_sidebar('index-insert');}

    $count = $count + 1;
    endwhile;
    }
    add_action('thematic_indexloop', 'snippet_index_loop');

    ?>

    Posted 1 year ago #
  2. i don't see the code for turning off the sidebar anywhere in your above snippet. so i don't know how you've done it.

    function kill_sidebar(){
      if(is_home()){
        return FALSE;
      } else {
        return TRUE;
      }
    }
    add_filter('thematic_sidebar','kill_sidebar');

    ps- i know i sent you to the tut on the columns, but it is a touch old. you don't need to remove the thematic_index_loop function and add the snippt_index_loop function. you can just rename snippet_index_loop to childtheme_override_index_loop and take advantage of the cool overrides that happened after that article was published.

    Posted 1 year ago #
  3. mrmikeman
    Member

    lol helg, it was hiding! i just happened to scroll down and bam! the sidebar was hiding on the bottom, it got pushed down haha i was so confused..
    now i just need to figure out how the heck to get it back up

    Posted 1 year ago #
  4. mrmikeman
    Member

    great now i just de-aligned everything...

    Posted 1 year ago #
  5. css issue then. don't forget to mark as resolved

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.