WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] single.php margin problem (5 posts)

  1. Bare
    Member
    Posted 4 years ago #

    Hi,
    I'm editing the default kubrick template to achieve the look I want, I have most of my changes made and I have one small (I think) problem. When I click on a comment page I have a big gap (30ish px) between the header and the content. I scoured the stylesheet, I checked the .php, I tried to find the source using firebug and I cannot find what is causing the problem. You can see my issue here:

    http://test.bareasschoppers.com/wordpress/uncategorized/hello-world/#respond

    I found one spot in the stylesheet that I thought was my culprit:

    .widecolumn .postmetadata {
    	margin: 30px 0;
    	}

    But that only impacts the postmetadata portion of the widecolumn, not the actual widecolumn div.

    Can anyone help me find my problem? Thanks in advance.

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    The (unused) 70px+ navigation links at the top of the page content area are creating the gap.

  3. Bare
    Member
    Posted 4 years ago #

    OK, stupid question... How would I turn those on or off, I've not seen that option.

    What I have done at this point was convert the single.php into a 2 column setup. This was what I really wanted anyway, and by using another help article I just changed the div class and added the sidebar call.

    So that was something I wanted that was unrelated to this, but it's important for anyone still viewing the link.

    Anyways, the gap is still there - I'm assuming it's the navigation div at the top of the single.php. I can just delete the entire div, right? If I figured out how to turn this on it would just be the horizontal nav I see on some WP pages?

    Thanks so much for the help.

  4. esmi
    Forum Moderator
    Posted 4 years ago #

    Either delete the nav div completely or move it to the bottom of the page content if you do need post-by-post navigation.

  5. Bare
    Member
    Posted 4 years ago #

    Oh ok, so it shows up after I have multiple posts - that was what I wasn't getting.

    I went ahead and made multiple posts so I could see what we're talking about, now it makes sense and I moved it to the bottom as you recommended.

    Thanks a bunch, I really appreciate it.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.