ThemeShaper Forums » Thematic


sidebar shown on blog page in wrong place

(5 posts)
  • Started 9 years ago by Irene Ogier
  • Latest reply from helgatheviking
  • This topic is not resolved
  1. Hi there,

    I made a child theme upon thematic theme for a client with some extra sidebars. I have put some code in functions.php and it works just fine. But now I have problems with the blogpage. It shows the sidebar that is not supposed to show up and worse, it's shown underneath the posts! :-(

    I have tried some things like deleting the sidebar, showing the full template but the effect is the same all the time. When I click on preview, It works, but I can't save the template page for the blog.
    What to do?

    The url is:

    Kind regards Irene

    Posted 9 years ago #
  2. anywone?
    This page is is.
    The code...
    If anyone could give me some advice, you'd be very kind. I can't save it in some way or the other.

    * Template Name: de blogpagina
    * This template allows you to display the latest posts on any page of the site.

    // calling the header.php

    // action hook for placing content above #container

    ?> <div id="sidebar-zij">
    <?php if ( !function_exists('dynamic_sidebar')
    || !dynamic_sidebar('sidebar1') ) : ?>
    <?php endif; ?>
    <?php if ( !function_exists('dynamic_sidebar')
    || !dynamic_sidebar('sidebar2') ) : ?>
    <?php endif; ?> </div><!-- #sidebar -->

    <div id="container">

    <?php thematic_abovecontent(); ?>

    <div id="content">

    $wp_query = new WP_Query();
    $wp_query->query( array( 'posts_per_page' => get_option( 'posts_per_page' ), 'paged' => $paged ) );
    $more = 0;


    // create the navigation above the content

    // calling the widget area 'index-top'

    // action hook for placing content above the index loop

    // action hook creating the index loop

    // action hook for placing content below the index loop

    // calling the widget area 'index-bottom'

    // create the navigation below the content


    </div><!-- #content -->

    <?php thematic_belowcontent(); ?>

    </div><!-- #container -->


    // action hook for placing content below #container

    // calling footer.php


    Posted 9 years ago #
  3. first off, it looks like you have some improperly closed html markup. you can tell this b/c when i view the source w/ firebug or chrome's dev tools you can see the markup doesn't match what thematic's ought to look like


    my guess is the problem lies in one of your text widgets, i've seen that happen plenty of times before.

    additionally, i'm not sure why you are calling that sidebar so soon in your template. if you want it to replace the normal sidebar, why not put it in place of thematic_sidebar() which occurs nearer to the end of the default template.

    please post your code between backtick marks

    Posted 9 years ago #
  4. Thanks for your reply!

    In fact I did'nt change that much in the php or html but stuff in css....

    I couldn't find the textwidgets any where in the template. A mistery...
    I solved this sidebar issue by replacing it to the 2 second and third additional sidebar.
    and I called the sidebar so early to place it above the container/ content en not below.

    I appreciate your reply! Backtick marks are? ... < ? >? Like that?

    Posted 9 years ago #
  5. on a US keyboard the backtick mark ( ` ) shares a key with the tilde ~ ... upper left next to the 1. i'm not sure where it lies on other keyboards.

    text widgets aren't in the template. they're in the widgets section of the dashboard.

    Posted 9 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.