Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #4323

    OK, Here’s what I did. at http://www.newyorkpetanque.com I was trying to change the single.php code so that all my posts were fullwidth with no sidebar. Now, the page is blank when I click on a post. I deleted something that I shouldn’t have deleted.

    Here’s my code as of right now… I deleted the conditional stuff that was at the top.

    <?php

    <!– ###################################################################### –>

    <div id=”main”>

    <!– ###################################################################### –>

    <div id=”content”>

    <?php

    if (have_posts()) :

    while (have_posts()) : the_post();

    $preview_image = kriesi_post_thumb($post->ID, array(‘size’=> array(‘M’),

    ‘display_link’ => array(‘lightbox’), // ‘_prev_image_link’ or array(‘lightbox’)

    ‘linkurl’ => array (‘fullscreen’,'_preview_big’),

    ‘wh’ => $k_option

    ));

    ?>

    <div class=”entry entry-no-pic”>

    <div class=”entry-content “>

    <h1 class=”entry-heading”>

    ” rel=”bookmark” title=”<?php _e(‘Permanent Link:’,'newscast’)?> <?php the_title(); ?>”>

    <?php the_title(); ?>

    </h1>

    <div class=”entry-head”>

    <span class=”date ie6fix”><?php the_time(‘M d, Y’) ?></span>

    <span class=”comments ie6fix”><?php comments_popup_link(__(‘No Comments’,'newscast’), __(’1 Comment’,'newscast’), __(‘% Comments’,'newscast’)); ?></span>

    <span class=”author ie6fix”><?php _e(‘by’,'newscast’);?> <?php the_author_posts_link(); ?></span>

    </div>

    <div class=”entry-text”>

    <?php

    the_content();

    edit_post_link(__(‘Edit’,'newscast’), ”, ”);

    ?>

    </div>

    <div class=”entry-bottom”>

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

    </div>

    </div><!–end entry_content–>

    </div><!–end entry –>

    <div class=’entry’ id=”author-box”>

    <div class=”gravatar”>

    <?php

    $author_email = get_the_author_email();

    echo get_avatar( $author_email, $size = ’60′);

    the_author_posts_link();

    ?>

    </div>

    <div class=”author-info”>

    <h3><?php _e(‘About the author’,'newscast’); ?></h3>

    <?php

    $description = get_the_author_description();

    if($description != ”)

    {

    echo $description;

    }

    else

    {

    _e(‘The author didnt add any Information to his profile yet’,'newscast’);

    }

    ?>

    </div>

    </div>

    <div id=’social_icons’>

    </div>

    <div class=’entry commententry’>

    <?php comments_template(); ?>

    </div>

    <?php

    endwhile;

    else:

    echo’<div class=”entry”>’;

    echo’<h2>’.__(‘Nothing Found’,'newscast’).’</h2>’;

    echo’<p>’.__(‘Sorry, no posts matched your criteria’,'newscast’).’</p>’;

    echo’</div>’;

    endif;

    // end content: ?></div>

    <?php

    get_sidebar();

    get_footer();

    ?>

    #45867

    ok… I was missing

    $k_option = “”; //<– Display Sidebar

    // $k_option = “fullwidth”; //<– Dont display Sidebar

    get_header(); ?>

    #45868

    now, how do I make these single page posts into fullwidth?

    #45869

    Hey,

    You need to adjust the bodyclass set at the very top of single.php which by default looks like this:

    $k_option['custom']['bodyclass'] = ""; //<-- Display Sidebar
    // $k_option['custom']['bodyclass'] = "fullwidth"; //<-- Dont display Sidebar

    to this:

    // $k_option['custom']['bodyclass'] = ""; //<-- Display Sidebar
    $k_option['custom']['bodyclass'] = "fullwidth"; //<-- Dont display Sidebar

    and delete following code:

    <?php get_sidebar(); ?>

    #45870

    awesome… worked like a charm! Thank you dude!

    #45871

    Glad that I could help you :)

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

The topic ‘NEED URGENT HELP! DELETED CODE!’ is closed to new replies.