• Resolved lillier

    (@lillier)


    Hello, i would like to adjust the width of the sidebar, but i’m search for style sheet there’s nothing i can’t change but only the content’s width.

    i would like to make my post area wider, so tat i not need to resize my photo in the post and the side bar content will not fall on my post content,

    thanks!

Viewing 15 replies - 16 through 30 (of 49 total)
  • in the home page, the thumbnail is overlapping on your sidebar

    /* Floats & Images */
    .right { float: right; }
    .left { float: left; }
    .middle {margin: 0 auto;float:left;}
    .clear { clear: both; }
    img.centered{display: block;margin-left: auto;margin-right: auto;max-width:950px}
    img.alignright{padding: 4px 0 4px 4px;margin: 3px 0 2px 10px;display: inline;max-width:950px}
    img.alignleft,img.attachment-post-thumbnail{padding: 4px 4px 4px 0;margin: 3px 10px 2px 0;display: inline;max-width:950px}
    img.alignnone{padding:4px 4px 4px 0; margin:3px 10px 2px 0;display: block;max-width:590px}
    .alignleft,.attachment-post-thumbnail{float: left;}
    .alignright{float: right;}
    .aligncenter,div.aligncenter {display: block;margin-left: auto;margin-right: auto;}
    .thumbnail, .attachment-thumbnail, #featured-section .timthumbnail, .archive .timthumbnail, .search .timthumbnail, #category-stack .timthumbnail {max-width:150px;margin:0 1.5em 1.5em 0;float:left}
    .alignright .attachment-thumbnail {margin-right:0}
    .attachment-medium {max-width:950px;overflow:hidden;display: inline}
    .attachment-large {max-width:950px;overflow:hidden;display: inline}
    .content .size-medium, content size-large {margin: 0 1.5em 1.5em 0}
    .home .size-medium, .home .size-large {max-width:590px; height:auto; overflow:hidden;margin:0 .5em .5em 0;}
    .gallery {display: block;clear: both;overflow: hidden;margin: 0 auto;}
    .gallery .gallery-row {display: block;clear: both;overflow: hidden;margin: 0;}
    .gallery .gallery-item {overflow: hidden;text-align: center;list-style: none;padding: 0; margin: 0 auto;}
    .gallery .gallery-item img, .gallery .gallery-item img.thumbnail {max-width: 100%;height: auto;padding: 0;border:none !important;}
    .gallery-caption {margin-left: 0;}
    .gallery-item .attachment-thumbnail {float:none !important;margin:0 auto;}
    .gallery-item dd{clear:both}
    
    /* Image sizes depending on the number of columns */
    .col-0 { width: 100%; }
    .col-1 { width: 100%; }
    .col-2 { width: 50%; }
    .col-3 { width: 33%; }
    .col-4 { width: 25%; }
    .col-5 { width: 20%; }
    .col-6 { width: 16.5%; }
    .col-7 { width: 14%; }
    .col-8 { width: 12.4%; }
    .col-9 { width: 11%; }
    .col-10 { width: 10%; }
    .col-11 { width: 9%; }
    .col-12 { width: 8.33%; }
    .col-13 { width: 7.6%; }
    .col-14 { width: 7.1%; }
    .col-15 { width: 6.66%; }
    .col-16 { width: 6.25%; }
    .col-17 { width: 5.83%; }
    .col-18 { width: 5.55%; }
    .col-19 { width: 5.25%; }
    .col-20 { width: 4.95%; }

    replace with it.

    Thread Starter lillier

    (@lillier)

    i’ve change it but not works, nth change.

    origianl is :

    <div class=”clear”></div>
    <div class=”content”>
    <?php while (have_posts()) : the_post(); ?>
    <div class=”post-<?php the_ID(); ?>”>
    <h2>” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php the_title() ?></h2>
    <?php the_post_thumbnail(); ?>
    <?php the_excerpt(); ?>
    <div class=”clear”></div>
    <p class=”postmetadata”><?php the_time(‘M d, Y’) ?> | <?php the_category(‘, ‘) ?> | <?php comments_popup_link(‘Leave A Comment »’, ‘1 Comment »’, ‘% Comments »’); ?> <?php edit_post_link(‘Edit’, ‘| ‘, ”); ?> </p>
    </div>
    <hr />
    <?php endwhile; ?>

    Thread Starter lillier

    (@lillier)

    chinmoy:

    hi, thanks you, u have solve my sidebar problem!!!

    now i’m only have the most annoying problem with the display problem of the categories posts.

    I’m really appreciate the help from you two great helper!!
    Hopes can get an answer to settle it soon.

    just remove the function <?php the_post_thumbnail(); ?> from archive.php file and check once

    Thread Starter lillier

    (@lillier)

    oh no….is still the same, cannot display all posts under the category~~~

    (crying)

    can you give your single.php file

    Moderator keesiemeijer

    (@keesiemeijer)

    Try deleting this <?php the_post_thumbnail(); ?> in your archieve.php
    Are you sure you are on WordPress 3.0?
    To enable post thumbnails, the current theme must include add_theme_support( ‘post-thumbnails’ ); in its functions.php file.

    Thread Starter lillier

    (@lillier)

    yup, sure my version is 3.0.

    actually i found only

    <?php the_post_thumbnail( ‘thumbnail’ ); ?>

    in my archive.php file.i removed it but nth change.

    Thread Starter lillier

    (@lillier)

    my single.php file:

    <?php get_header(); ?>
    <div class=”span-<?php
    $sidebar_state = get_option(‘T_sidebar_state’);

    if($sidebar_state == “On”) {
    echo “15 colborder home”;
    }
    else {
    echo “24 last”;
    }
    ?>”>
    <div class=”content”>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <h2><?php the_title(); ?></h2>
    <?php include (THEMELIB . ‘/apps/multimedia.php’); ?>
    <?php the_content(); ?>
    </div>
    <div class=”clear”></div>

    <p class=”postmetadata alt”>
    <small>
    This entry was posted
    <?php /* This is commented, because it requires a little adjusting sometimes.
    You’ll need to download this plugin, and follow the instructions:
    https://binarybonsai.com/archives/2004/08/17/time-since-plugin/ */
    /* $entry_datetime = abs(strtotime($post->post_date) – (60*120)); echo time_since($entry_datetime); echo ‘ ago’; */ ?>
    on <?php the_time(‘l, F jS, Y’) ?> at <?php the_time() ?>
    and is filed under <?php the_category(‘, ‘) ?><?php if (get_the_tags()) the_tags(‘ and tagged with ‘); ?>.
    You can follow any responses to this entry through the <?php post_comments_feed_link(‘RSS 2.0’); ?> feed.

    <?php if ((‘open’ == $post-> comment_status) && (‘open’ == $post->ping_status)) {
    // Both Comments and Pings are open ?>
    You can leave a response, or ” rel=”trackback”>trackback from your own site.

    <?php } elseif (!(‘open’ == $post-> comment_status) && (‘open’ == $post->ping_status)) {
    // Only Pings are Open ?>
    Responses are currently closed, but you can ” rel=”trackback”>trackback from your own site.

    <?php } elseif ((‘open’ == $post-> comment_status) && !(‘open’ == $post->ping_status)) {
    // Comments are open, Pings are not ?>
    You can skip to the end and leave a response. Pinging is currently not allowed.

    <?php } elseif (!(‘open’ == $post-> comment_status) && !(‘open’ == $post->ping_status)) {
    // Neither Comments, nor Pings are open ?>
    Both comments and pings are currently closed.

    <?php } edit_post_link(‘Edit this entry’,”,’.’); ?>

    </small>
    </p>

    <div class=”nav prev left”><?php next_post_link(‘%link’, ‘←’, TRUE); ?></div>
    <div class=”nav next right”><?php previous_post_link(‘%link’, ‘→’, TRUE); ?></div>
    <div class=”clear”></div>
    <?php endwhile; else : ?>

    <h2 class=”center”>Not Found</h2>
    <p class=”center”>Sorry, but you are looking for something that isn’t here.</p>
    <?php include (TEMPLATEPATH . “/searchform.php”); ?>

    <?php endif; ?>
    <?php comments_template(); ?>
    </div>
    </div>

    <?php
    $sidebar_state = get_option(‘T_sidebar_state’);

    if($sidebar_state == “On”) {
    get_sidebar() ;
    }
    else {
    echo “”;
    }
    ?>

    <!– Begin Footer –>
    <?php get_footer(); ?>

    Thread Starter lillier

    (@lillier)

    i don’t understand why the theme can works with others site but only problem with this site ….(crying)

    and the page look like not finish loading then stop.
    coz not only i can’t see all the posts list,
    but also not footer is show.

    not remove put this <?php the_post_thumbnail( 'thumbnail' ); ?>

    I think that this function is creating the problem. First time delete it and check once. Then put it again.

    Moderator keesiemeijer

    (@keesiemeijer)

    is this in your theme’s function.php:
    add_theme_support( 'post-thumbnails' );
    Otherwise put it there

    Thread Starter lillier

    (@lillier)

    Chinmoy:

    Do u means keep the
    <?php the_post_thumbnail( ‘thumbnail’ ); ?>

    in its place?
    remove or not remove the result is still the same.

    Thread Starter lillier

    (@lillier)

    keesiemeijer:
    yup, it is inside the function.php already~

    // Add post thumbnail theme support
    add_theme_support( ‘post-thumbnails’ );
    set_post_thumbnail_size( 150, 150, true );

    but the problem still exits….

    Moderator keesiemeijer

    (@keesiemeijer)

    make it like so:

    Add post thumbnail theme support
    add_theme_support( 'post-thumbnails' );
    set_post_thumbnail_size( 150, 150, true );

    without the “//”

Viewing 15 replies - 16 through 30 (of 49 total)
  • The topic ‘How to adjust the sidebar width?’ is closed to new replies.