ThemeShaper Forums » Thematic

[closed]

sidebar shown on blog page in wrong place

(5 posts)
  • Started 2 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: www.image2media.nl

    Kind regards Irene

    Posted 2 years ago #
  2. anywone? http://www.image2media.nl/blog/
    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.

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

    // calling the header.php
    get_header();

    // action hook for placing content above #container
    thematic_abovecontainer();

    ?> <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">

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

    <?php

    // create the navigation above the content
    thematic_navigation_above();

    // calling the widget area 'index-top'
    get_sidebar('index-top');

    // action hook for placing content above the index loop
    thematic_above_indexloop();

    // action hook creating the index loop
    thematic_indexloop();

    // action hook for placing content below the index loop
    thematic_below_indexloop();

    // calling the widget area 'index-bottom'
    get_sidebar('index-bottom');

    // create the navigation below the content
    thematic_navigation_below();

    ?>

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

    <?php thematic_belowcontent(); ?>

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

    <?php

    // action hook for placing content below #container
    thematic_belowcontainer();

    // calling footer.php
    get_footer();

    ?>

    Posted 2 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

    #main
      #container
        #content
      #primary
      #secondary

    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 2 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 2 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 2 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.