• Kjetil

    (@kjetilgf)


    Hi
    When clicking a Read more… link to open the full contents of a post, the sidebar disappears. How can I avoid this?
    If it is a theme related question – could anyone please give me a hint on what to look for?
    I’m using the WPremix theme. On another blog I run with K2, there is no such problem. Thats makes me wonder…:- )
    Thanks,
    Kjetil Flekkoy

Viewing 9 replies - 1 through 9 (of 9 total)
  • areaunited

    (@areaunited)

    in the admin/ presentation/ theme editor check to see if the single post page has the following code placed at the end of the script

    <?php get_sidebar(); ?>

    if problem persist possibly check other scripts

    i dont use <-more-> so not 100% which script needs editing

    Thread Starter Kjetil

    (@kjetilgf)

    It’s there
    <?php get_sidebar(); ?>
    just before the similar footer code. Funny…
    Thanks for trying

    Thread Starter Kjetil

    (@kjetilgf)

    Anyone – please?
    I still haven’t found any solution for the problem I described initially.
    Any help is highly appreciated
    Kjetil

    boober

    (@boober)

    its almost certainly your theme. the single.php or whatever file name is used for showing individual posts, doesnt include the sidebar. just like the default wordpress theme.

    Thread Starter Kjetil

    (@kjetilgf)

    Thanks, but now I’ve checked every possible file, and all end

    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    Other possibilities?

    boober

    (@boober)

    its not commented out it is? maybe post the code in your single.php file and a link to your site.
    we arent psychic

    Thread Starter Kjetil

    (@kjetilgf)

    I don’t know what you think about with your first question, but the posts are open for comments (but no comments posted yet).
    I’ve made category templates which are used to display all “blog” posts. I’ve pasted one of these below. All are equal apart from the initial lines.

    Just to explain what this is about:
    The site I’m building will be a WP version of the Italy guide dolcevita.no – for now “hidden away” on dolcevita.no/wp. Each category will display posts about local places in each Italian region. So, as you understand, I’m trying to use WP as a CMS.
    If I can’t make the sidebar appear in this theme (Remix – a purchased premium theme), maybe I will have to use another?
    Thanks for taking your time
    Kjetil
    —–
    The Piemonte category template – category-4.php:

    <?php
    /*
    Template Name: Category 4 Piemonte
    */
    ?>
    <?php get_header(); ?>
    
    <div id="center">
      <div id="center-in" class="blog">
    
        <div class="clearfix">
    
    		<?php while(have_posts()) : the_post(); ?>	
    
    		<h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
          	<div class="post-date clearfix">Posted by <?php the_author(); ?> on <?php the_time('F jS, Y') ?></div>
    
    				<?php the_content('Read more...'); ?>
    				<?php edit_post_link('Edit', '<p>', '</p>'); ?>
    				<!-- <?php trackback_rdf(); ?> -->
    
    		<div class="post-footer cleafix">
    			<span class="post-cat"><?php the_category(', ') ?></span>
    			<span class="post-comments"><?php comments_popup_link('Post a comment', '1 Comment', '% Comments'); ?></span>
    		</div>
    
    		<?php endwhile; ?>
    
    		<div id="nav-below" class="navigation">
    			<div class="nav-previous"><?php next_posts_link('&laquo; Older posts'); ?></div>
    			<div class="nav-next"><?php previous_posts_link('Newer posts &raquo;'); ?></div>
    		</div>
    
        </div>
    
        <br clear="all" />
    
    </div><!-- end #center -->
    </div><!-- end #center-in -->
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>
    Thread Starter Kjetil

    (@kjetilgf)

    I feel completely lost here
    The sidebar disappears when I click Read more… – even though the sidebar code is in the pages’ templates. Now I’ve also tried to switch themes to for instance K2, and the same happens.
    Question is:
    Why does this happen?
    Where should I look for a solution?
    Are some other file than the templates crucial?
    I really need to correct this, since the site won’t make sense without the sidebar.
    Really grateful if anyone could share some light!
    Kjetil


    dolcevita.no/wp
    – migrating from dolcevita.no

    Thread Starter Kjetil

    (@kjetilgf)

    Forgot to mention: You’ll find all the funny acting posts under the links in the far-left dropdown menu. (Each Italian region is a category, where all the local posts appear.)

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

The topic ‘Disappearing sidebar’ is closed to new replies.