WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to adjust the sidebar width? (50 posts)

  1. lillier
    Member
    Posted 3 years ago #

    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!

  2. keesiemeijer
    moderator
    Posted 3 years ago #

    url to website please?

  3. lillier
    Member
    Posted 3 years ago #

    http://princess.zettai-glay.com

    and please help me, i found one big problem.
    you may click any one under the categories in the sidebar,
    why it only showing 1 or maybe half post but not all posts under the same categories.

    thank you.

  4. keesiemeijer
    moderator
    Posted 3 years ago #

    Have you tried:

    - deactivating all plugins to see if this resolves the problem? If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    - switching to the default theme 2010 to rule out any theme-specific problems?

  5. lillier
    Member
    Posted 3 years ago #

    Hello, thank for your reply ^^

    i've tried deactivating all the plugin but the problem of post disply is still exits.

    and i try switch to default them and dun have any problem with the disply.
    Only this theme have the problem.

    This really make me go insane....

  6. lillier
    Member
    Posted 3 years ago #

    and i have another wordpress site , i switch to this theme but it working normal don't have the problem i mention above.

    What wrong with my current site?

  7. keesiemeijer
    moderator
    Posted 3 years ago #

    try this as well

    re-upload the wp-admin and wp-includes folders from a fresh download of WordPress? Make sure the version of the WordPress download is the same as the one you use

  8. lillier
    Member
    Posted 3 years ago #

    will it delete or make changes to my current site?
    afraid of data loss ...

    I'LL TRY IT NOW~

  9. keesiemeijer
    moderator
    Posted 3 years ago #

    No this will not delete or make any changes to your site. All your data is in the Database and all your theme and personal files are in the "wp-content" folder. Just re-upload these two folders "wp-admin" and "wp-includes"

  10. lillier
    Member
    Posted 3 years ago #

    ok, i'm trying now~
    thank for your help. Hopes it works!

  11. lillier
    Member
    Posted 3 years ago #

    Ooops... the problem still exits ....
    what can i do now ?

  12. keesiemeijer
    moderator
    Posted 3 years ago #

    can you post the code in your category.php (if you have one) or archive.php in the pastebin and give the link back here.

  13. chinmoy
    Member
    Posted 3 years ago #

    edit your css file with

    img.alignnone {
    display:block;
    margin:3px 10px 2px 0;
    max-width:600px;
    padding:4px 4px 4px 0;
    }
  14. lillier
    Member
    Posted 3 years ago #

    to keesiemeijer:

    here is the archieve.php

    http://wordpress.pastebin.com/u1YRVYSp

    AND CATEGORY.PHP

    http://wordpress.pastebin.com/TLXiAyBY

    Thank you~

  15. lillier
    Member
    Posted 3 years ago #

    to chinmoy:

    not really know ho to edit, my css below img are in this way:

    /* 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:950px}
    .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%; }

  16. chinmoy
    Member
    Posted 3 years ago #

    try this the_post_thumbnail( 'thumbnail' ); in your archieve.php page

  17. chinmoy
    Member
    Posted 3 years ago #

    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.

  18. lillier
    Member
    Posted 3 years ago #

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

  19. lillier
    Member
    Posted 3 years ago #

    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.

  20. chinmoy
    Member
    Posted 3 years ago #

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

  21. lillier
    Member
    Posted 3 years ago #

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

    (crying)

  22. chinmoy
    Member
    Posted 3 years ago #

    can you give your single.php file

  23. keesiemeijer
    moderator
    Posted 3 years ago #

    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.

  24. lillier
    Member
    Posted 3 years ago #

    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.

  25. lillier
    Member
    Posted 3 years ago #

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

  26. lillier
    Member
    Posted 3 years ago #

    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.

  27. chinmoy
    Member
    Posted 3 years ago #

    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.

  28. keesiemeijer
    moderator
    Posted 3 years ago #

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

  29. lillier
    Member
    Posted 3 years ago #

    Chinmoy:

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

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

  30. lillier
    Member
    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic