ThemeShaper Forums » Thematic

[closed]

Menu and sidebar not visible on new pages

(1 post)
  • Started 3 years ago by diana
  • This topic is not resolved

Tags:

  1. diana
    Member

    I'm reposting this issue as I'd previously tacked it on to an old related thread.

    The menu, made vertical and moved to between main asides, and the second sidebar below do not show up on newly created pages while they remain on existing pages. Since I'm using multiple templates, I've made sure that the new page is using the same template as the existing pages where all the info shows up to make sure there's not something wrong in the template. I've also cleared cache on the existing pages that work to eliminate that same possibility. It doesn't matter where on the site, whether it has a parent or not.

    Try going to Maps > Magazine Pages at the link above to see what I mean.

    What could be causing this issue?

    I've made some edits to the default template as follows:

    <?php get_header() ?>
    	<div id="container">
    		<div id="content">
    <?php get_sidebar('page-top') ?>
    <?php the_post() ?>
    			<div id="post-<?php the_ID(); ?>" class="<?php thematic_post_class() ?>">
    				<div class="entry-content">
    <?php the_content() ?>
    <?php edit_post_link(__('Edit', 'thematic'),'<span class="edit-link">','</span>') ?>
    				</div>
    			</div><!-- .post -->
    <?php if ( get_post_custom_values('comments') ) comments_template('', true) // Add a key+value of "comments" to enable comments on this page ?>
    <?php get_sidebar('page-bottom') ?>
    		</div><!-- #content -->
    	</div><!-- #container -->
    <?php thematic_sidebar() ?>
    <?php get_footer() ?>

    I added <?php single_post_title(); ?> to the primary sidebar. Otherwise, sidebar's the same as original.

    Functions looks like:

    // removes blog-description
    function no_blogdescription() {
    	remove_action('thematic_header','thematic_blogdescription',5);
    }
    add_action('init', 'no_blogdescription');
    
    // removes main menu
    function remove_access() {
     	remove_action('thematic_header','thematic_access',9);
    }
    add_action('init', 'remove_access');
    
    // adds main menu to sidebar
    add_action('thematic_betweenmainasides', 'thematic_access');
    
    // converts menu to vertical
    function child_add_menuclass($ulclass) {
      return preg_replace('/<ul>/', '<ul class="sf-menu sf-vertical">', $ulclass, 1);
    }
    add_filter('wp_page_menu', 'child_add_menuclass');

    Could upgrading to 2.9.2 have cause a conflict of this type?

    Posted 3 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.