Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #3992

    Whenever I view a post on my site, the theme moves the sidebar below the main content of the page. The link below shows what I mean.

    http://laserproductsus.com/2011/04/22/top-3-sourcing-failures-of-kitchen-bath-shops/

    Any help would be wonderful.

    #44497

    Hey,

    A modification / adjustment / change, (either by yourself or caused by a plugin / widget) has broken the layout as you can see on the W3C validator: http://validator.w3.org/check?uri=http%3A%2F%2Flaserproductsus.com%2F2011%2F04%2F22%2Ftop-3-sourcing-failures-of-kitchen-bath-shops%2F&charset=%28detect+automatically%29&doctype=Inline&group=0

    Fixing these bugs should restore the layout.

    James

    #44498

    I went through and fixed the errors that made sense (missing alt tags) but the rest make no sense to me at all. When I look at the code, it is correct. There is nothing wrong with it.

    #44499

    Hey,

    you forgot a div (closing) tag someone in the page content. The most important error is:

    Line 393, Column 7: end tag for “div” omitted, but OMITTAG NO was specified

    #44500

    Should I be looking in the single.php file for this? Because there are only 87 lines of code in that file.

    <?php

    global $k_option;

    $k_option = “”; // $k_option = “class=’fullwidth’”;

    get_header();

    ?>

    <div id=”main”>

    <div id=”content”>

    <?php

    if (have_posts()) :

    while (have_posts()) : the_post();

    // check if we got a previe picture, and which one should be taken

    // (image resizing with “tim thumb” on? then we can take the big one and resize it)

    $preview_small = get_post_meta($post->ID, “_preview_small”, true);

    $preview_medium = get_post_meta($post->ID, “_preview_medium”, true);

    $preview_big = get_post_meta($post->ID, “_preview_big”, true);

    //defaults:

    $preview = $preview_medium;

    $link_url = $preview_big;

    $lightbox = ‘singlepost’;

    $link = true;

    //change if necessary:

    // resizing? => take next sized picture

    if ($k_option == “1″ && $preview_medium == “”)

    {

    $preview = $preview_big;

    }

    // no bigpicture? => no lightbox

    if ($preview_big == “”) { $lightbox = ”; $link = true; $link_url = get_permalink(); }

    // the kriesi_build_image function used here checks if the image should be resized.

    // the function is located in framework/helper_functions

    $preview = kriesi_build_image(array(‘url’=>$preview,

    ‘height’=> ’273′,

    ‘width’=> ’610′,

    ‘lightbox’=>$lightbox,

    ‘link’=>$link,

    ‘link_url’=>$link_url

    ));

    ?>

    <div class=’entry blogentry’>

    <div class=”date”>

    <span class=’day’><?php the_time(‘d’) ?></span>

    <span class=’month’><?php the_time(‘M’) ?></span>

    <span class=’year’><?php the_time(‘Y’) ?></span>

    </div><!– end date –>

    <h2>” rel=”bookmark” title=”Permanent Link: <?php the_title(); ?>”><?php the_title(); ?></h2>

    <div class=’post_data’>

    <span class=’categories’><?php the_category(‘, ‘) ?><?php edit_post_link(‘Edit’, ‘, ‘, ”); ?></span>

    <span class=’author’><?php comments_popup_link(‘No Comments’, ’1 Comment’, ‘% Comments’); ?></span>

    </div><!–end post data–>

    <?php

    echo $preview; // echo the preview image

    the_content(‘Read more’);

    ?>

    </div><!–end entry–>

    <div class=’entry commententry’>

    <?php comments_template(); ?>

    </div>

    <?php endwhile;

    kriesi_pagination($query_string);

    else:

    ?>

    <div class=”entry”>

    <h2>Nothing Found</h2>

    <p>Sorry, no posts matched your criteria.</p>

    </div>

    <?php

    endif;

    ?>

    </div><!– end content –>

    <?php get_sidebar(); ?>

    </div><!–end main–>

    <?php get_footer(); ?>

    #44501

    Hey,

    The template file loading the page is single.php, but other files including header.php, sidebar.php and footer.php are also loaded. Based on the fact that the other pages display correctly, I recommend using the original template file from the Theme Forest package, then making your changes one at a time to avoid the problem again.

    James

    #44502

    I have reverted back to the original single.php, sidebar.php and footer.php and nothing has changed. When I tried to revert back to the original header.php I got an error message saying:

    Fatal error: Class ‘description_walker’ not found in /hermes/bosweb26a/b1553/sl.laserproductsus/public_html/wp-content/themes/display/display/header.php on line 131

    and only the header loads with that error message.

    Any other thoughts about how to fix this?

    #44503

    Hey,

    can you try to use the original css files. Maybe the modified css files cause the problem.

    #44504

    Tried changing back to all the standard css files (style.css, style1.css, style2.css and style3.css) and no change.

    #44505

    Hey,

    There are a few steps you should take here:

    1.) Disable all plugins

    2.) Remove all widgets

    If the site doesn’t work at this point, delete and reinstall the theme using a fresh copy from Theme Forest.

    3.) Reactivate your widgets one by one, testing that the layout works.

    4.) Reactivate your plugins one by one, testing that the layout works.

    Something was edited breaking the layout, I know that the original theme files (with no plugins / widgets) works so the steps above should help you figure out where the problem is.

    James

    #44506

    Am I going to have to document and rebuild the menu structure and all the settings for Display them?

    #44507

    Hey,

    You shouldn’t have to rebuild the Menu / Settings for Display unless you have to delete and recreate the DataBase. This step would only be required if the above steps I posted don’t work, let us know how you get on.

    James

Viewing 12 posts - 1 through 12 (of 12 total)

The topic ‘Sidebar showing up in Main Column on Single Posts’ is closed to new replies.