Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
  • #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. (Purchase code hidden if logged out) -kitchen-bath-shops/

    Any help would be wonderful.



    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: (Purchase code hidden if logged out) -kitchen-bath-shops%2F&charset=%28detect+automatically%29&doctype=Inline&group=0

    Fixing these bugs should restore the layout.



    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.



    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


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


    global $k_option;

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



    <div id=”main”>

    <div id=”content”>


    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);


    $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’,






    <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–>


    echo $preview; // echo the preview image

    the_content(‘


    </div><!–end entry–>

    <div class=’entry commententry’>

    <?php comments_template(); ?>


    <?php endwhile;




    <div class=”entry”>

    <h2>Nothing Found</h2>

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





    </div><!– end content –>

    <?php get_sidebar(); ?>

    </div><!–end main–>

    <?php get_footer(); ?>



    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.



    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?



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


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



    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.



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



    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.


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.