• Resolved mkirkwag

    (@mkirkwag)


    Can anyone tell me where the width for a single post (as opposed to a page or the whole blog page) would normally be located in a theme and what it might say? I can’t seem to find it. Thanks!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The theme file for a Single Post is usually called “single.php”, however the width would probably be defined in the CSS (usually style.css) for the page since CSS controls the presentation of the page.

    So you would be looking for the CSS class/ID which controls the single post width and then find it in the CSS and edit the width.

    Thread Starter mkirkwag

    (@mkirkwag)

    What I was really asking was where in the style sheet…I’ve pored through the style sheet line by line and I can’t find it…so I need to know what the class id is likely to be or what the usual language is that defines a single post. Just knowing that it should be there hasn’t helped me because I’m so ignorant of what the code should be. It seems to me I’ve changed every possible thing related to “width” in the style sheet, but apparently not.

    There’s nothing at all referring to “width” in single.php.

    Well you need to open up a single post page view the Source code from there and find/identify the element class/ID in question. There is no specific/convential naming, it could be anything.

    Obviously we can only help so far without seeing the page in question!

    Thread Starter mkirkwag

    (@mkirkwag)

    Oh, sorry – I always put the page in…forgot!
    Here’s a single post
    is the main page for comparison or the blog itself is here (since that’s a static page):

    I’m trying to figure out why the sidebar is kicked out on the single posts only, and I’m thinking that width of the single post itself might be defined differently than the others.

    Thread Starter mkirkwag

    (@mkirkwag)

    That came out odd.
    Here’s a single post:
    http://tribeofadmins.com/eggcorns-and-malaprops
    and here’s the blog page:
    http://tribeofadmins.com/tips-and-tricks-blog

    Thread Starter mkirkwag

    (@mkirkwag)

    Hi…does anyone have time to look at this to see if you can tell what the class id is for single post width? I can’t find it in the style sheet or in the single post.php…or anywhere else. My sidebar is getting bumped in single posts, and I’m wondering if I somehow changed the width of the posting area so that it’s bumping the sidebar.
    Here’s a single post:
    http://tribeofadmins.com/eggcorns-and-malaprops
    and here’s the blog page:
    http://tribeofadmins.com/tips-and-tricks-blog

    Thanks in advance!

    Hi you are missing a closing DIV hence why the sidebar is dropping because it is still in the left content DIV if you understand, so you need to close this div before your sidebar.

    If this is only happening on posts then I guess you just need to add a </div> to the end of your single.php

    Thread Starter mkirkwag

    (@mkirkwag)

    single.php begins
    <div id="sidebar" class="sidebars">
    and ends
    </div>
    Seems right, doesn’t it?

    Thread Starter mkirkwag

    (@mkirkwag)

    ignore that. sorry.

    Thread Starter mkirkwag

    (@mkirkwag)

    Thanks! That did it. I found it in the middle of the single.php page. It’s probably obvious from the above that I was looking at sidebar.php instead of single.php…I need a little red-faced emoticon here.

    Appreciate the help. I’m off to go read up on DIV

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Finding Width for Single Posts’ is closed to new replies.