Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #2161

    So I know this has been talked about on this site before but I have more unanswered questions.

    How do you get the full page blog posts AND have your images be the full width? I can remove the sidebar but the copy and images still stay at 600, even after changing the css to 940.

    Also what is the process of taking out prettyphoto and having portfolio images link to the post just like the title link does?

    Anyone help me out?

    #36913

    Hey,

    In single.php the width is set at 600 using this code:

    $width = '600';

    You can adjust the width here, but this will affect all posts as will removing the sidebar.

    You could set up conditional variables if you only wanted some posts to be full width and some to be the regular width.

    James

    #36914

    James,

    Take a look at this site:

    http://joshglaze.com/josh/

    I’m trying to get my portfolio pages to be full with but still have the option to have sidebars on main pages. How is this possible? I have tryied the steps listed in this post but still the images/text on the post pages still stay at 600.

    http://www.kriesi.at/support/topic/levitation

    Please let me know.

    Thanks

    #36915

    Hey,

    What you’re after seems to be the behaviour the site is displaying, for example you Photography page (http://joshglaze.com/josh/?page_id=49) is full width and the About Me page (http://joshglaze.com/josh/?page_id=53) is partial width with the sidebar.

    If this issue is ongoing, please provide a specific example and I’ll look into it.

    James

    #36916

    Hi,

    I want to remove the sidebars from posts and pages, and blogs and have all pages span 100% full width.

    I’ve followed your advice above “changing the width from 600..” But I don’t see that section of code in the single.php file. I’ve copied the single.php file for you below.

    SINGLE.PHP FILE


    <?php

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

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

    get_header(); ?>

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

    <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

    if($preview_image)

    {

    echo ‘<div class=”entry-previewimage rounded preloading_background”>’;

    echo $preview_image;

    echo ‘</div>’;

    }

    ?>

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

    ?>

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

The topic ‘Full Page Blog Posts and Sidebar widgets’ is closed to new replies.