WordPress.org

Ready to get started?Download WordPress

Forums

How do I change width of sidebar and main content area? (11 posts)

  1. pookieguy
    Member
    Posted 2 years ago #

    Hello there,

    I cannot seem to find where to change the sidebar width of a particular theme I have loaded. I've gone through every single file in this theme, including the style.css and see absolutely nothing related to sidebar in terms of width, height or margin. There's no div.sidebar section as some have stated to look for.

    Where else can this be? I've checked every file.

    Thanks,

  2. Charles Frees-Melvin
    Member
    Posted 2 years ago #

    The Sidebar width may be the leftover width from other divs.

    i.e.

    |                     Total Area                          |
    |        Main Area                     |     Sidebar      |

    Main area and total area may be defined and side bar is the difference and would not need defining.

  3. pookieguy
    Member
    Posted 2 years ago #

    Thanks for the quick reply!

    Yes, but the problem is I can't really find anything at all related to width, height or margin in general. Everything I find is related to other things like the search bar and the top navigation bar. Nothing else.

    Is there something else I'm overlooking? Also, it would definitely be in the .css file right?

    Thanks,

  4. Charles Frees-Melvin
    Member
    Posted 2 years ago #

    99.9% it is in the css. do you have a link? Firebug add-on to firefox is really good at CSS issues, Or I use a paid app CSSEdit on OSX.

  5. pookieguy
    Member
    Posted 2 years ago #

    That's what I thought, as I have edited this just fine on other sites.

    Yes, you can find that theme activated here...

    http://wwww.androidphoneportal.com

    Thanks,

  6. pookieguy
    Member
    Posted 2 years ago #

    I want the overall page to stay the same but what I want to do is make the sidebar narrow and the content/post section a bit longer.

    Can't seem to do it with this theme.

  7. Charles Frees-Melvin
    Member
    Posted 2 years ago #

    It is from the leftover of the main content
    <td width="630" valign="top" align="left">

    Your overall page size is set by the style.css
    #box2 {
    margin: 0 auto;
    width: 990px;
    }

    That theme has more than enough divs to do it with CSS and not need that table in there. IMO it is not a good theme for a beginner to work with.

  8. pookieguy
    Member
    Posted 2 years ago #

    But where are you seeing this 630 width?

    Yes, I've played with the "box" settings but that width is for the overall page as you stated.

    I don't see this <td> with the 630 you are referring to...??

    Thanks!!

  9. Charles Frees-Melvin
    Member
    Posted 2 years ago #

    Secondly the encoded code in that themes footer.php

    <?php $_F=__FILE__;$_X='Pz48P3BocCA1Y2g(Plus Hundreds more letters that I cropped)Ow=='));?>

    Is something that I would personally avoid when choosing a theme.

  10. Charles Frees-Melvin
    Member
    Posted 2 years ago #

    That table code with the 630 is in line 86 of your header.php file.

  11. pookieguy
    Member
    Posted 2 years ago #

    Ahh, the header file...ok.

    Well, changing that didn't do anything but just move the sidebar to the left. I'm trying to make the sidebar more narrow.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.